数据资产登记更新
Showing
1 changed file
with
3 additions
and
15 deletions
| ... | @@ -45,25 +45,13 @@ watch( | ... | @@ -45,25 +45,13 @@ watch( |
| 45 | 45 | ||
| 46 | } | 46 | } |
| 47 | } | 47 | } |
| 48 | // isExist.length == 0 && list.push(newRouter); | 48 | list.map(item => { |
| 49 | // list.map(item => { | 49 | item.fullPath = decodeURIComponent(item.fullPath); |
| 50 | // if (combPath == 'app-scenes') { | 50 | }) |
| 51 | // item.visible = item.fullPath == '/' | ||
| 52 | // } else { | ||
| 53 | // if (item.fullPath.split('/')?.[1] != combPath) { | ||
| 54 | // item.visible = false | ||
| 55 | // } else { | ||
| 56 | // item.visible = true | ||
| 57 | // } | ||
| 58 | // } | ||
| 59 | // }) | ||
| 60 | tabbarList.value = list; | 51 | tabbarList.value = list; |
| 61 | tabbarActive.value = decodeURIComponent(newRouter.fullPath); | 52 | tabbarActive.value = decodeURIComponent(newRouter.fullPath); |
| 62 | userStore.setTabbar(tabbarList.value); | 53 | userStore.setTabbar(tabbarList.value); |
| 63 | userStore.setActiveTabbar(combPath, newRouter.fullPath); | 54 | userStore.setActiveTabbar(combPath, newRouter.fullPath); |
| 64 | // nextTick(() => { | ||
| 65 | // setTabVisible() | ||
| 66 | // }) | ||
| 67 | }, | 55 | }, |
| 68 | { immediate: true } | 56 | { immediate: true } |
| 69 | ); | 57 | ); | ... | ... |
-
Please register or sign in to post a comment