diff --git a/framework/sdk-parent/frontend/src/router/index.js b/framework/sdk-parent/frontend/src/router/index.js index 538834e66b..e6c834160d 100644 --- a/framework/sdk-parent/frontend/src/router/index.js +++ b/framework/sdk-parent/frontend/src/router/index.js @@ -71,6 +71,7 @@ import('@/store').then(async ({useUserStore}) => { let store = null; router.beforeEach(async (to, from, next) => { + document.title = localStorage.getItem("default-document-title") || "MeterSphere"; if (store === null) { const {useUserStore} = await import('@/store'); store = useUserStore(); diff --git a/framework/sdk-parent/frontend/src/router/permission.js b/framework/sdk-parent/frontend/src/router/permission.js index 158c6ef785..f5da1d591f 100644 --- a/framework/sdk-parent/frontend/src/router/permission.js +++ b/framework/sdk-parent/frontend/src/router/permission.js @@ -8,6 +8,7 @@ const whiteList = ["/login"] // no redirect whitelist let store = null; router.beforeEach(async (to, from, next) => { + document.title = localStorage.getItem("default-document-title") || "MeterSphere"; // start progress bar NProgress.start();