From fd19536cbf9e5acec9bf7270f3f46037e822827d Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期二, 29 八月 2023 16:44:45 +0800
Subject: [PATCH] 添加菜单折叠自适应宽度 修改密码  修改用户角色 中英文切换全局配置

---
 CanadaMes-ui/src/router/index.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/CanadaMes-ui/src/router/index.js b/CanadaMes-ui/src/router/index.js
index 21a76f1..03377b2 100644
--- a/CanadaMes-ui/src/router/index.js
+++ b/CanadaMes-ui/src/router/index.js
@@ -96,6 +96,18 @@
   // 鑾峰彇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