-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
307 additions
and
95 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { cloneDeep, merge, mergeWith } from 'lodash-es' | ||
import qs from 'qs' | ||
|
||
// import Vue from 'vue' | ||
|
||
// import VueCompositionAPI from '@vue/composition-api' // [email protected] or earlier only | ||
import useAdmate from '../src' | ||
|
||
// TODO | ||
import request from './request' // TODO | ||
import http from './http' | ||
|
||
// [email protected] or earlier only | ||
/* import VueCompositionAPI from '@vue/composition-api' | ||
Vue.use(VueCompositionAPI) */ | ||
// Vue.use(VueCompositionAPI) // [email protected] or earlier only | ||
|
||
export default (admateConfig, { | ||
// 表单标题 | ||
|
@@ -109,7 +110,7 @@ export default (admateConfig, { | |
disable, | ||
updateStatus, | ||
} = useAdmate(merge({ | ||
axios: request, | ||
axios: http, | ||
axiosConfig: { | ||
c: { | ||
url: 'create', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
<script> | ||
import routes from './router/routes' | ||
export default { | ||
data() { | ||
return { | ||
routes: routes.filter(v => !v.hidden), | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<span v-for="({path},i) of routes"> | ||
<span | ||
v-for="({ path }, i) of routes" | ||
:key="i" | ||
> | ||
<router-link :to="path"> | ||
{{ path.substr(1) }} | ||
</router-link> | ||
<span v-if="i!==routes.length-1"> | </span> | ||
<span v-if="i !== routes.length - 1"> | </span> | ||
</span> | ||
|
||
<router-view></router-view> | ||
<router-view /> | ||
|
||
<!--<router-view v-slot="{ Component }"> | ||
<!-- <router-view v-slot="{ Component }"> | ||
<transition> | ||
<keep-alive> | ||
<component :is="Component"/> | ||
</keep-alive> | ||
</transition> | ||
</router-view>--> | ||
</router-view> --> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import routes from './router/routes' | ||
export default { | ||
data () { | ||
return { | ||
routes: routes.filter(v => !v.hidden), | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import Vue from 'vue' | ||
import VueRouter from 'vue-router' | ||
import routes from './routes' | ||
|
||
Vue.use(VueRouter) | ||
|
||
export default new VueRouter({ | ||
routes | ||
routes, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.