From cec5af55d91fafe5ad6fe53e2b7295fa860bd795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=87?= <52823142+Ten-K@users.noreply.github.com> Date: Tue, 30 Nov 2021 22:57:28 +0800 Subject: [PATCH] fix(router): refresh (#137) --- src/router/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index dbc246d23..995b352d4 100644 --- a/src/router/index.ts +++ b/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,