fix: 系统名字

tea/dev
wx-jincw 4 weeks ago
parent 00dff4573c
commit e225d96bb3

@ -38,14 +38,14 @@ router.beforeEach(async(to, from, next) => {
} else { } else {
const hasRoles = store.getters.roles && store.getters.roles.length > 0 const hasRoles = store.getters.roles && store.getters.roles.length > 0
if (hasRoles) { if (hasRoles) {
// console.log('跳转1', to); console.log('跳转1', to);
next() next()
} else { } else {
try { try {
const roles = await store.dispatch('user/getInfo') const roles = await store.dispatch('user/getInfo')
const accessRoutes = await store.dispatch('permission/generateRoutes', roles) const accessRoutes = await store.dispatch('permission/generateRoutes', roles)
router.addRoutes(accessRoutes) router.addRoutes(accessRoutes)
// console.log('跳转2', to); console.log('跳转2', to);
next({ path: to.redirectedFrom || to.path, replace: true }) next({ path: to.redirectedFrom || to.path, replace: true })
} catch (error) { } catch (error) {
// remove token and go to login page to re-login // remove token and go to login page to re-login

@ -14,7 +14,7 @@ module.exports = {
// 接口请求地址 // 接口请求地址
apiBaseURL: VUE_APP_API_URL, apiBaseURL: VUE_APP_API_URL,
title: '甄味馆', title: '物业管理',
/** /**
* @type {boolean} true | false * @type {boolean} true | false

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, 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, // If your port is set to 80,
// use administrator privileges to execute the command line. // use administrator privileges to execute the command line.

Loading…
Cancel
Save