mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix(router): refresh (#137)
This commit is contained in:
parent
d04ba7563a
commit
cec5af55d9
@ -234,6 +234,9 @@ router.beforeEach((to, _from, next) => {
|
|||||||
if (usePermissionStoreHook().wholeRoutes.length === 0)
|
if (usePermissionStoreHook().wholeRoutes.length === 0)
|
||||||
initRouter(name.username).then((router: Router) => {
|
initRouter(name.username).then((router: Router) => {
|
||||||
if (!useMultiTagsStoreHook().getMultiTagsCache) {
|
if (!useMultiTagsStoreHook().getMultiTagsCache) {
|
||||||
|
if (to.meta?.realPath) {
|
||||||
|
to.meta.title = `No.${to.params?.id} - 详情信息`;
|
||||||
|
}
|
||||||
useMultiTagsStoreHook().handleTags("push", {
|
useMultiTagsStoreHook().handleTags("push", {
|
||||||
path: to.path,
|
path: to.path,
|
||||||
parentPath: to.matched[0]?.path,
|
parentPath: to.matched[0]?.path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user