diff --git a/psdc-ui/src/App.vue b/psdc-ui/src/App.vue index 31839f2..652f7b3 100644 --- a/psdc-ui/src/App.vue +++ b/psdc-ui/src/App.vue @@ -13,3 +13,11 @@ onMounted(() => { }) }) + + diff --git a/psdc-ui/src/router/index.js b/psdc-ui/src/router/index.js index 3ff9cfc..c4a9d64 100644 --- a/psdc-ui/src/router/index.js +++ b/psdc-ui/src/router/index.js @@ -57,19 +57,19 @@ export const constantRoutes = [ component: () => import('@/views/error/401'), hidden: true }, - // { - // path: '', - // component: Layout, - // redirect: '/index', - // children: [ - // { - // path: '/index', - // component: () => import('@/views/index'), - // name: 'Index', - // meta: { title: '能源控制', icon: 'dashboard', affix: true } - // } - // ] - // }, + { + path: '', + component: Layout, + redirect: '/index', + children: [ + { + path: '/index', + component: () => import('@/views/index'), + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } + ] + }, { path: '/user', component: Layout, diff --git a/psdc-ui/src/views/login.vue b/psdc-ui/src/views/login.vue index 689b43a..af4cb7c 100644 --- a/psdc-ui/src/views/login.vue +++ b/psdc-ui/src/views/login.vue @@ -1,7 +1,8 @@ @@ -152,22 +153,29 @@ getCookie();