From 5c929cfb5286a31a4e067cbc61e8774f4e7d42ae Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 06 五月 2025 11:25:41 +0800
Subject: [PATCH] 任务查看:任务名称undefined解决
---
src/components/TopNav/index.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index f214245..b7673c6 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -33,7 +33,6 @@
<script>
import { constantRoutes } from "@/router";
-import { isHttp } from "@/utils/validate";
// 闅愯棌渚ц竟鏍忚矾鐢�
const hideList = ['/index', '/user/profile'];
@@ -79,7 +78,7 @@
if(router.path === "/") {
router.children[item].path = "/" + router.children[item].path;
} else {
- if(!isHttp(router.children[item].path)) {
+ if(!this.ishttp(router.children[item].path)) {
router.children[item].path = router.path + "/" + router.children[item].path;
}
}
@@ -127,7 +126,7 @@
handleSelect(key, keyPath) {
this.currentIndex = key;
const route = this.routers.find(item => item.path === key);
- if (isHttp(key)) {
+ if (this.ishttp(key)) {
// http(s):// 璺緞鏂扮獥鍙f墦寮�
window.open(key, "_blank");
} else if (!route || !route.children) {
@@ -161,6 +160,9 @@
} else {
this.$store.dispatch('app/toggleSideBarHide', true);
}
+ },
+ ishttp(url) {
+ return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1
}
},
};
@@ -178,7 +180,7 @@
.topmenu-container.el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
border-bottom: 2px solid #{'var(--theme)'} !important;
- color: #303133;
+ color: #000000;
}
/* submenu item */
--
Gitblit v1.8.0