|
@@ -41,6 +41,10 @@
|
|
require: false,
|
|
require: false,
|
|
default: true,
|
|
default: true,
|
|
},
|
|
},
|
|
|
|
+ projectCheckLogin: {
|
|
|
|
+ require: false,
|
|
|
|
+ default: false,
|
|
|
|
+ },
|
|
doLoading: {
|
|
doLoading: {
|
|
require: false,
|
|
require: false,
|
|
default: false,
|
|
default: false,
|
|
@@ -138,7 +142,7 @@
|
|
|
|
|
|
var commonIconInfoList = response ? response.commonIconInfoList : '';
|
|
var commonIconInfoList = response ? response.commonIconInfoList : '';
|
|
this.set_common_menu_list(commonIconInfoList);
|
|
this.set_common_menu_list(commonIconInfoList);
|
|
-
|
|
|
|
|
|
+
|
|
//获取所有功能列表
|
|
//获取所有功能列表
|
|
if (token) {
|
|
if (token) {
|
|
this.getAuthFunList();
|
|
this.getAuthFunList();
|
|
@@ -161,7 +165,7 @@
|
|
var allIconRoute = response.allIconRoute;
|
|
var allIconRoute = response.allIconRoute;
|
|
this.set_auth_fun_list(allIconRoute);
|
|
this.set_auth_fun_list(allIconRoute);
|
|
|
|
|
|
- this.asynCallBack();
|
|
|
|
|
|
+ this.asynCallBack(true);
|
|
} else {
|
|
} else {
|
|
mui.toast('未返回allIcon');
|
|
mui.toast('未返回allIcon');
|
|
}
|
|
}
|
|
@@ -171,10 +175,19 @@
|
|
mui.toast(error);
|
|
mui.toast(error);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ //判断权限然后进行跳转
|
|
|
|
+ projectExchange() {
|
|
|
|
+
|
|
|
|
+ //如果不想跳转,还可以传参exchange,一般用于home注册切换等功能
|
|
|
|
+ if (this.projectCheckLogin) {
|
|
|
|
+ window.location.href = '../#/master';
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//异步回调父组件的方法
|
|
//异步回调父组件的方法
|
|
- asynCallBack() {
|
|
|
|
- //this.projectExchange();
|
|
|
|
|
|
+ asynCallBack(bl) {
|
|
|
|
+ if(bl){
|
|
|
|
+ this.projectExchange();
|
|
|
|
+ }
|
|
this.$emit('asynCallBack');
|
|
this.$emit('asynCallBack');
|
|
},
|
|
},
|
|
...mapMutations({
|
|
...mapMutations({
|