From dd8e54f7435203d43c81dd39d9f45ab461076096 Mon Sep 17 00:00:00 2001 From: gtz217 <535262213@qq.com> Date: Fri, 18 Mar 2022 16:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8E=BB=E9=99=A4=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 27 ++++++++++--------- src/views/dashboard/components/PortDetail.vue | 4 +-- src/views/dashboard/index.vue | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 85cf483..ff29539 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,19 +57,6 @@ export const constantRoutes = [ component: () => import('@/views/login/index'), hidden: true }, - { - path: '/', - component: Layout, - redirect: '/dashboard', - children: [ - { - path: 'dashboard', - component: () => import('@/views/dashboard/index'), - name: 'Dashboard', - meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', iconPart: 'dashboard', affix: true, required: true, requireToken: true } - } - ] - }, // { // path: '/', // component: () => import('@/views/ChoicePart'), @@ -91,6 +78,20 @@ export const constantRoutes = [ component: () => import('@/views/error-page/401'), hidden: true }, + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard', + name: 'Dash', + children: [ + { + path: 'dashboard', + component: () => import('@/views/dashboard/index'), + name: 'Dashboard', + meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true } + } + ] + }, { path: '/', component: Layout, diff --git a/src/views/dashboard/components/PortDetail.vue b/src/views/dashboard/components/PortDetail.vue index 81d6201..b05cd8e 100644 --- a/src/views/dashboard/components/PortDetail.vue +++ b/src/views/dashboard/components/PortDetail.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:37:56 * @LastEditors: gtz - * @LastEditTime: 2022-03-17 10:49:54 + * @LastEditTime: 2022-03-18 16:18:38 * @Description: -->