mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
fix: update
This commit is contained in:
@@ -232,9 +232,7 @@ router.beforeEach((to, _from, next) => {
|
||||
initRouter(name.username).then((router: Router) => {
|
||||
router.push(to.path);
|
||||
// 刷新页面更新标签栏与页面路由匹配
|
||||
const localRoutes = storageLocal.getItem(
|
||||
"responsive-routesInStorage"
|
||||
);
|
||||
const localRoutes = storageLocal.getItem("responsive-tags");
|
||||
const optionsRoutes = router.options?.routes;
|
||||
const newLocalRoutes = [];
|
||||
optionsRoutes.forEach(ors => {
|
||||
@@ -245,7 +243,7 @@ router.beforeEach((to, _from, next) => {
|
||||
});
|
||||
});
|
||||
storageLocal.setItem(
|
||||
"responsive-routesInStorage",
|
||||
"responsive-tags",
|
||||
uniqBy(newLocalRoutes, "path")
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user