数据资产登记更新
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -26,7 +26,7 @@ watch( | ... | @@ -26,7 +26,7 @@ watch( |
| 26 | if (tab.fullPath.includes(jionPath)) { | 26 | if (tab.fullPath.includes(jionPath)) { |
| 27 | pathIndex.value = index | 27 | pathIndex.value = index |
| 28 | } | 28 | } |
| 29 | return tab.fullPath === newRouter.fullPath | 29 | return tab.fullPath === decodeURIComponent(newRouter.fullPath); |
| 30 | }); | 30 | }); |
| 31 | if (isExist.length == 0) { | 31 | if (isExist.length == 0) { |
| 32 | if (pathIndex.value != -1 && routerLength > 3) { | 32 | if (pathIndex.value != -1 && routerLength > 3) { |
| ... | @@ -58,7 +58,7 @@ watch( | ... | @@ -58,7 +58,7 @@ watch( |
| 58 | // } | 58 | // } |
| 59 | // }) | 59 | // }) |
| 60 | tabbarList.value = list; | 60 | tabbarList.value = list; |
| 61 | tabbarActive.value = newRouter.fullPath; | 61 | tabbarActive.value = decodeURIComponent(newRouter.fullPath); |
| 62 | userStore.setTabbar(tabbarList.value); | 62 | userStore.setTabbar(tabbarList.value); |
| 63 | userStore.setActiveTabbar(combPath, newRouter.fullPath); | 63 | userStore.setActiveTabbar(combPath, newRouter.fullPath); |
| 64 | // nextTick(() => { | 64 | // nextTick(() => { |
| ... | @@ -79,7 +79,6 @@ const changeTab = (pane: any, ev: any) => { | ... | @@ -79,7 +79,6 @@ const changeTab = (pane: any, ev: any) => { |
| 79 | }; | 79 | }; |
| 80 | const removeTab = (targetName) => { | 80 | const removeTab = (targetName) => { |
| 81 | // const tabs = tabbarList.value.filter(item => item.visible ?? true); | 81 | // const tabs = tabbarList.value.filter(item => item.visible ?? true); |
| 82 | debugger | ||
| 83 | const tabs = tabbarList.value; | 82 | const tabs = tabbarList.value; |
| 84 | let activeName = tabbarActive.value, nextTab: any = {}; | 83 | let activeName = tabbarActive.value, nextTab: any = {}; |
| 85 | const setTabs = (activeTab) => { | 84 | const setTabs = (activeTab) => { | ... | ... |
-
Please register or sign in to post a comment