剧本编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-06-24 09:24:08 +08:00
parent b85362460e
commit 0f7cdb2b8e
3 changed files with 9 additions and 5 deletions

View File

@ -57,7 +57,9 @@ const scriptRecord = {
state.scriptCommand = scriptCommand;
},
updateRole:(state, userRole) => {
state.updateRoleStatus += 1;
if (state.userRole == userRole) {
state.updateRoleStatus += 1;
}
state.userRole = userRole;
},
updateCoversitionInfo:(state) => {

View File

@ -134,8 +134,10 @@ export default {
},
'userRole':function(val) {
this.isHasCoversition = false;
},
'$store.state.scriptRecord.updateCoversitionStatus':function(val) {
this.isHasCoversition = false;
}
// updateCoversitionStatus
},
mounted() {
this.initPage();

View File

@ -30,10 +30,10 @@ export default {
watch:{
'userRole':function(val) {
this.initPage(true);
},
'$store.state.scriptRecord.updateRoleStatus':function(val) {
this.initPage(true);
}
// '$store.state.scriptRecord.updateRoleStatus':function(val) {
// this.initPage(true);
// }
},
mounted() {
},