From e2263d54560ccf28bdfbf117aeda58b380a898aa Mon Sep 17 00:00:00 2001 From: TiaStars Date: Thu, 21 Nov 2024 16:12:07 +0800 Subject: [PATCH] bugfix --- src/components/Breadcrumb/index.vue | 22 ++-------------------- src/views/unitPages/myTask/info.vue | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 4206e8f..d376661 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -40,25 +40,8 @@ export default { // 当前全部侧边栏 let sidebarRouters = this.sidebarRouters let matched = this.$route.matched.filter(item => item.meta && item.meta.title) - let matchedquery = this.$route.query - matched[0].query = matchedquery - - const first = matched[0] - - - // sidebarRouters.forEach(element => { - // if (element.children && element.children.length != 0) { - // // 提取带childen的侧边栏 - // if (element.children.find(item => item.name == this.$route.name)) { - // // 插入 - // matched.splice(1, 0, element); // 在索引为 1 的位置插入 newObj - // } - // } - // }); - if (!this.isDashboard(first)) { - // matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) - } - console.log(matched[0]); + + if(matched[0].path == "/assetsAuth" ) { // 管理端--资产管理--新增资产 const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'assets') @@ -103,7 +86,6 @@ export default { return name.trim() === 'Index' }, handleLink(item) { - console.log(item); const { redirect, path } = item if (redirect) { diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue index 8365c92..682ac13 100644 --- a/src/views/unitPages/myTask/info.vue +++ b/src/views/unitPages/myTask/info.vue @@ -128,9 +128,19 @@ @@ -259,7 +269,6 @@ export default { pageType: "change", taskId: row.taskId, assetId:row.id - } }) }