Commit 0779717e by 冷斌

update

parent 48f79f42
......@@ -68,7 +68,6 @@
alertBox: false,
touid: '',
uname: '',
roleName: '',
role: 0,
uid: {$uid},
},
......@@ -162,7 +161,6 @@
this.touid = '';
this.uname = '';
this.role = 0;
this.roleName = '';
},
returnBtn: function () {
layer.confirm('您确定要解散家族',{
......@@ -219,12 +217,12 @@
}
},
computed: {
'roleBtn': function() {
this.roleName = '设为管理员';
roleName: function() {
let name = '设为管理员';
if (this.role > 0) {
this.roleName = '取消管理员';
name = '取消管理员';
}
return this.roleName;
return name;
}
},
watch: {
......
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