From f2f72996185ac0611a1f854821bf023a96aac658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 19 Apr 2024 10:58:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/components/message.vue | 8 ++------ src/views/system/components/miniProgram.vue | 8 ++------ src/views/system/components/officialAccount.vue | 8 ++------ src/views/system/components/propaganda.vue | 8 ++------ src/views/system/components/question.vue | 8 ++------ 5 files changed, 10 insertions(+), 30 deletions(-) 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: {