Commit 95f83c5e by lixiaomin

修改方法名

parent 1ba4040d
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
} }
}, },
created() { created() {
this.bb(); this.getDisable();
}, },
methods: { methods: {
// 删除图片 // 删除图片
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
return strs; return strs;
}, },
bb(){ getDisable(){
const permissions = store.getters && store.getters.permissions; const permissions = store.getters && store.getters.permissions;
if(permissions.length>0){ if(permissions.length>0){
if(permissions[0]=="*:*:*"){ if(permissions[0]=="*:*:*"){
...@@ -210,10 +210,8 @@ export default { ...@@ -210,10 +210,8 @@ export default {
return; return;
} }
for(let i=0;i<permissions.length;i++){ for(let i=0;i<permissions.length;i++){
if(permissions[i]=="system:config:edit"){ if(permissions[i]=="system:config:edit"){
this.disabled=false this.disabled=false
console.log("this.disabled",this.disabled)
return; return;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment