forked from liweijie/education
禁止修改全局布局,以及菜单栏变动
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import router from './router'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import { Message } from 'element-ui'
|
||||
import NProgress from 'nprogress'
|
||||
@@ -18,7 +18,6 @@ const isWhiteList = (path) => {
|
||||
router.beforeEach((to, from, next) => {
|
||||
NProgress.start()
|
||||
if (getToken()) {
|
||||
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
|
||||
const isLock = store.getters.isLock
|
||||
/* has token*/
|
||||
if (to.path === '/login') {
|
||||
|
||||
Reference in New Issue
Block a user