diff --git a/src/views/system/components/message.vue b/src/views/system/components/message.vue index 2dbe46c..cb9c72f 100644 --- a/src/views/system/components/message.vue +++ b/src/views/system/components/message.vue @@ -146,14 +146,10 @@ export default { this.Departmentlist(); }, templateId(newValue, oldValue) { - if (newValue) { - this.handleselectId = newValue; - } + this.handleselectId = newValue; }, templateName(newValue, oldValue) { - if (newValue) { - this.handleselectName = newValue; - } + this.handleselectName = newValue; } }, mounted() { diff --git a/src/views/system/components/miniProgram.vue b/src/views/system/components/miniProgram.vue index b0ff951..6db4100 100644 --- a/src/views/system/components/miniProgram.vue +++ b/src/views/system/components/miniProgram.vue @@ -146,14 +146,10 @@ export default { this.Departmentlist(); }, templateId(newValue, oldValue) { - if (newValue) { - this.handleselectId = newValue; - } + this.handleselectId = newValue; }, templateName(newValue, oldValue) { - if (newValue) { - this.handleselectName = newValue; - } + this.handleselectName = newValue; } }, mounted() { diff --git a/src/views/system/components/officialAccount.vue b/src/views/system/components/officialAccount.vue index 1e14a8d..7a59bbb 100644 --- a/src/views/system/components/officialAccount.vue +++ b/src/views/system/components/officialAccount.vue @@ -146,14 +146,10 @@ export default { this.Departmentlist(); }, templateId(newValue, oldValue) { - if (newValue) { - this.handleselectId = newValue; - } + this.handleselectId = newValue; }, templateName(newValue, oldValue) { - if (newValue) { - this.handleselectName = newValue; - } + this.handleselectName = newValue; } }, mounted() { diff --git a/src/views/system/components/propaganda.vue b/src/views/system/components/propaganda.vue index f4926c7..b07d128 100644 --- a/src/views/system/components/propaganda.vue +++ b/src/views/system/components/propaganda.vue @@ -165,14 +165,10 @@ export default { }, watch: { templateId(newValue, oldValue) { - if (newValue) { - this.handleselectId = newValue; - } + this.handleselectId = newValue; }, templateName(newValue, oldValue) { - if (newValue) { - this.handleselectName = newValue; - } + this.handleselectName = newValue; } }, computed: { diff --git a/src/views/system/components/question.vue b/src/views/system/components/question.vue index 8b4231d..b7c097a 100644 --- a/src/views/system/components/question.vue +++ b/src/views/system/components/question.vue @@ -125,14 +125,10 @@ export default { }, watch: { templateId(newValue, oldValue) { - if (newValue) { - this.handleselectId = newValue; - } + this.handleselectId = newValue; }, templateName(newValue, oldValue) { - if (newValue) { - this.handleselectName = newValue; - } + this.handleselectName = newValue; } }, methods: {