From c378e9a104233c53a92f49b6603f5142a3689b4f Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 22 十二月 2023 15:05:55 +0800 Subject: [PATCH] 销售明细跳转页面的时候对应下面的产品信息等模块列表的数据对应错误的问题修改 --- src/components/layout/components/appsidebar/index.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/components/layout/components/appsidebar/index.vue b/src/components/layout/components/appsidebar/index.vue index bf9aff6..7be1f15 100644 --- a/src/components/layout/components/appsidebar/index.vue +++ b/src/components/layout/components/appsidebar/index.vue @@ -66,7 +66,21 @@ console.log(res.data.list,"crm鑿滃崟") res.data.list.map((item)=>{ if(item.systemType===2){ - this.menus=item.menus + let newList= JSON.parse(JSON.stringify([...item.menus])) + // 闅愯棌浜� 鐢熸垚璁″垝 鍜� 鏈嶅姟鏀惰垂绠$悊妯″潡 + if(newList[1]){ + const found = newList[1].children.find(obj => obj.title === "鐢熸垚璁″垝") + if(found){ + newList[1].children=[...newList[1].children.slice(0, -1)]; + } + } + if(newList[2]){ + const found1 = newList[2].children.find(obj => obj.title === "鏈嶅姟鏀惰垂绠$悊") + if(found1){ + newList[2].children=[...newList[2].children.slice(0, -1)]; + } + } + this.menus=newList } }) }) -- Gitblit v1.8.0