@duxweb/dvha-template 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/base/main.ts +4 -11
package/package.json
CHANGED
package/template/base/main.ts
CHANGED
|
@@ -9,14 +9,12 @@ import 'virtual:uno.css'
|
|
|
9
9
|
const app = createApp(App)
|
|
10
10
|
|
|
11
11
|
const config: IConfig = {
|
|
12
|
-
apiUrl: 'https://m1.apifoxmock.com/m1/4407506-4052338-default',
|
|
13
12
|
defaultManage: 'admin',
|
|
14
13
|
manages: [
|
|
15
14
|
{
|
|
16
15
|
name: 'admin',
|
|
17
16
|
title: 'DVHA 后台管理系统',
|
|
18
17
|
routePrefix: '/admin',
|
|
19
|
-
apiUrl: '/admin',
|
|
20
18
|
components: {
|
|
21
19
|
authLayout: () => import('./pages/layout.vue'),
|
|
22
20
|
notFound: () => import('./pages/404.vue'),
|
|
@@ -46,18 +44,13 @@ const config: IConfig = {
|
|
|
46
44
|
label: '用户管理',
|
|
47
45
|
component: () => import('./pages/home.vue'),
|
|
48
46
|
},
|
|
49
|
-
{
|
|
50
|
-
name: 'settings',
|
|
51
|
-
path: 'settings',
|
|
52
|
-
icon: 'i-tabler:settings',
|
|
53
|
-
label: '系统设置',
|
|
54
|
-
component: () => import('./pages/home.vue'),
|
|
55
|
-
},
|
|
56
47
|
],
|
|
57
48
|
},
|
|
58
49
|
],
|
|
59
|
-
dataProvider: simpleDataProvider
|
|
60
|
-
|
|
50
|
+
dataProvider: simpleDataProvider({
|
|
51
|
+
apiUrl: 'https://m1.apifoxmock.com/m1/4407506-4052338-default/admin',
|
|
52
|
+
}),
|
|
53
|
+
authProvider: simpleAuthProvider(),
|
|
61
54
|
}
|
|
62
55
|
|
|
63
56
|
app.use(createDux(config))
|