From 7fac117d5b0217be53bdf7945bcfb3c1715b5bbb Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 22 一月 2024 08:28:11 +0800
Subject: [PATCH] 代码测试后更新
---
CanadaMes-ui/src/router/index.js | 72 ++++++++++++++++++++++++++++++++++-
1 files changed, 69 insertions(+), 3 deletions(-)
diff --git a/CanadaMes-ui/src/router/index.js b/CanadaMes-ui/src/router/index.js
index 21a76f1..d65b7da 100644
--- a/CanadaMes-ui/src/router/index.js
+++ b/CanadaMes-ui/src/router/index.js
@@ -33,6 +33,7 @@
path: '/home',
component: () => import('../views/home')
},
+
{
@@ -48,6 +49,7 @@
component: () => import('../views/device/parameter'),
},
+
{
path: '/device/alarm',
component: () => import('../views/device/alarm')
@@ -56,6 +58,7 @@
path: '/device/iostate',
component: () => import('../views/device/iostate')
},
+
{
path: '/device/control',
component: () => import('../views/device/control')
@@ -76,16 +79,69 @@
path: '/Electrical/State',
component: () => import('../views/Electrical/State')
},
+ {
+ path: '/Electrical/alarm',
+ component: () => import('../views/Electrical/alarm')
+ },
+ {
+ path: '/Electrical/Servomanual',
+ component: () => import('../views/Electrical/Servomanual')
+ },
+ {
+ path: '/Electrical/ServoManualone',
+ component: () => import('../views/Electrical/ServoManualone')
+ },
+ {
+ path: '/Electrical/Parameter1',
+ component: () => import('../views/Electrical/Parameter1')
+ },
+ {
+ path: '/Electrical/Parameter2',
+ component: () => import('../views/Electrical/Parameter2')
+ },
+ {
+ path: '/Electrical/Positioning1',
+ component: () => import('../views/Electrical/Positioning1')
+ },
+ {
+ path: '/Electrical/Positioning2',
+ component: () => import('../views/Electrical/Positioning2')
+ },
+ {
+ path: '/Electrical/ManualonePosition',
+ component: () => import('../views/Electrical/ManualonePosition')
+ },
+ {
+ path: '/Electrical/ManualonePosition2',
+ component: () => import('../views/Electrical/ManualonePosition2')
+ },
+ {
+ path: '/Electrical/AutomaticParameterSetting',
+ component: () => import('../views/Electrical/AutomaticParameterSetting')
+ },
+ {
+ path: '/Electrical/ManualJog',
+ component: () => import('../views/Electrical/ManualJog')
+ },
+ {
+ path: '/Electrical/InteractionState',
+ component: () => import('../views/Electrical/InteractionState')
+ }
-
-
+
]
}
];
+
+
const router = new VueRouter({
- routes
+ // base: '/canadames/',
+ routes,
+ meta:{
+keepAlive:false
+ }
});
// 璺敱鎺у埗瀹堝崼,瑙e喅闇�瑕佺櫥褰曟墠鍙互璁块棶鐨勯〉闈�
@@ -96,6 +152,16 @@
// 鑾峰彇token
const hasToken = getToken();
+
+ const isExist = Vue.prototype.$tagList.some(tag => tag.path === to.fullPath);
+
+ if (!isExist) {
+ Vue.prototype.$tagList.push({
+ path: to.fullPath,
+ data: null
+ });
+ }
+
// 娌℃湁token鍒欒烦杞埌鐧诲綍椤甸潰
if (!hasToken) return next('/login');
--
Gitblit v1.8.0