|
@@ -68,19 +68,11 @@ app
|
|
|
* @需添加路由拦截 --登录后执行
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
router.beforeEach((to) => {
|
|
|
if (to.path != '/login') {
|
|
|
- store.commit("publicSiteList");
|
|
|
- store.commit('publicDeviceList')
|
|
|
-
|
|
|
- console.log(to.meta.title)
|
|
|
- store.commit('getAuthorities', to.meta.title)
|
|
|
- store.commit('getMiddleConfig')
|
|
|
-
|
|
|
- // console.log('store.state.authorities')
|
|
|
- // console.log(store.state.authorities)
|
|
|
-
|
|
|
+ store.commit('publicDeviceList')//公共左侧树状设备
|
|
|
+ store.commit('getAuthorities', to.meta.title)//公共按钮权限
|
|
|
+
|
|
|
// next()
|
|
|
}
|
|
|
// if (to.path == '/home') {
|