diff --git a/client/index.html b/client/index.html
index e5d6a6b..580c286 100644
--- a/client/index.html
+++ b/client/index.html
@@ -2,6 +2,7 @@
+
API Client
\ No newline at end of file
diff --git a/client/src/main.js b/client/src/main.js
index cceb294..bd0cb3a 100644
--- a/client/src/main.js
+++ b/client/src/main.js
@@ -1,39 +1,39 @@
import {createApp} from 'vue'
-import {createRouter, createWebHistory} from 'vue-router'
+import {createMemoryHistory, createRouter, createWebHistory} from 'vue-router'
import App from './App.vue'
import {Layout, Menu} from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
createApp(App)
- .use(Layout)
- .use(Menu)
- .use(createRouter({
- history: createWebHistory(),
- routes: [
- {path: '/', redirect: 'home'},
- {
- name: 'home',
- path: '/home',
- component: () => import('./views/Home.vue'),
- },
- {
- name: 'management',
- path: '/management',
- component: () => import('./views/management/Index.vue'),
- redirect: 'overview',
- children: [
- {
- name: 'overview',
- path: '/overview',
- component: () => import('./views/management/Overview.vue'),
- },
- {
- name: 'setting',
- path: '/setting',
- component: () => import('./views/management/Setting.vue'),
- },
- ],
- },
+ .use(Layout)
+ .use(Menu)
+ .use(createRouter({
+ history: createWebHistory(),
+ routes: [
+ {path: '/', redirect: 'home'},
+ {
+ name: 'home',
+ path: '/home',
+ component: () => import('./views/Home.vue'),
+ },
+ {
+ name: 'management',
+ path: '/management',
+ component: () => import('./views/management/Index.vue'),
+ redirect: '/management/overview',
+ children: [
+ {
+ name: 'overview',
+ path: 'overview',
+ component: () => import('./views/management/Overview.vue'),
+ },
+ {
+ name: 'setting',
+ path: 'setting',
+ component: () => import('./views/management/Setting.vue'),
+ },
],
- }))
- .mount('#app')
+ },
+ ],
+ }))
+ .mount('#app')
diff --git a/client/src/views/management/Index.vue b/client/src/views/management/Index.vue
index e2b9b53..f9373e8 100644
--- a/client/src/views/management/Index.vue
+++ b/client/src/views/management/Index.vue
@@ -1,13 +1,7 @@
@@ -16,17 +10,20 @@ function handleSideNavSelect({item, key, selectedKeys}) {
- 概览
+
+ 概览
+
系统管理
- 设置
+
+ 设置
+