From 55e1ca6bccbee868b10fa9096f2f56704928461c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 28 四月 2023 15:07:22 +0800
Subject: [PATCH] 1.提交
---
src/layout/components/Sidebar/index.vue | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index a9f4534..8c0a5a7 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -74,6 +74,17 @@
routes() {
return this.$router.options.routes
},
+ // activeMenu() {
+ // const route = this.$route
+ // const { meta, path } = route
+ // // if set path, the sidebar will highlight the path you set
+ // removeCookie('ruleCode')
+ // setCookie('ruleCode', meta.code)// 灏嗙紪鐮佽鍒檆ode瀛樺埌cookie閲岄潰
+ // if (meta.activeMenu) {
+ // return meta.activeMenu
+ // }
+ // return path
+ // },
activeMenu() {
const route = this.$route
const { meta, path } = route
@@ -83,6 +94,17 @@
if (meta.activeMenu) {
return meta.activeMenu
}
+
+ if (path.indexOf('kanbanManager') !== -1) { // 褰撶偣鍑绘櫤鎱х湅鏉跨殑鏃跺��
+ const url = this.$router.resolve({
+ path
+ // query: { id: 123 }
+ })
+
+ const t = url.href.split('/')
+ window.open('#/' + t[2], '_blank')
+ }
+
return path
},
showLogo() {
--
Gitblit v1.9.3