'样式修改-登录/中英文'
This commit is contained in:
@@ -30,7 +30,7 @@ export const pageRoutes = [
|
||||
meta: { title: '登录' },
|
||||
beforeEnter(to, from, next) {
|
||||
if (Cookies.get('token')) {
|
||||
Vue.prototype.$message({ message: '已经登录过了', type: 'error' })
|
||||
Vue.prototype.$message({ message: $t('login.warning'), type: 'error' })
|
||||
next(false)
|
||||
} else {
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user