Browse Source

fix(router): refresh (#137)

一万 3 năm trước cách đây
mục cha
commit
cec5af55d9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/router/index.ts

+ 3 - 0
src/router/index.ts

@@ -234,6 +234,9 @@ router.beforeEach((to, _from, next) => {
       if (usePermissionStoreHook().wholeRoutes.length === 0)
         initRouter(name.username).then((router: Router) => {
           if (!useMultiTagsStoreHook().getMultiTagsCache) {
+            if (to.meta?.realPath) {
+              to.meta.title = `No.${to.params?.id} - 详情信息`;
+            }
             useMultiTagsStoreHook().handleTags("push", {
               path: to.path,
               parentPath: to.matched[0]?.path,