diff --git a/admin/src/permission.js b/admin/src/permission.js index 80a9a4a..b7bda5b 100644 --- a/admin/src/permission.js +++ b/admin/src/permission.js @@ -38,14 +38,14 @@ router.beforeEach(async(to, from, next) => { } else { const hasRoles = store.getters.roles && store.getters.roles.length > 0 if (hasRoles) { - // console.log('跳转1', to); + console.log('跳转1', to); next() } else { try { const roles = await store.dispatch('user/getInfo') const accessRoutes = await store.dispatch('permission/generateRoutes', roles) router.addRoutes(accessRoutes) - // console.log('跳转2', to); + console.log('跳转2', to); next({ path: to.redirectedFrom || to.path, replace: true }) } catch (error) { // remove token and go to login page to re-login diff --git a/admin/src/settings.js b/admin/src/settings.js index 209d540..f9007b7 100644 --- a/admin/src/settings.js +++ b/admin/src/settings.js @@ -14,7 +14,7 @@ module.exports = { // 接口请求地址 apiBaseURL: VUE_APP_API_URL, - title: '甄味馆', + title: '物业管理', /** * @type {boolean} true | false diff --git a/admin/vue.config.js b/admin/vue.config.js index f6421f2..df5f69e 100644 --- a/admin/vue.config.js +++ b/admin/vue.config.js @@ -6,7 +6,7 @@ function resolve(dir) { return path.join(__dirname, dir) } -const name = defaultSettings.title || '甄味馆' // page title +const name = defaultSettings.title || '物业管理' // page title // If your port is set to 80, // use administrator privileges to execute the command line.