From c71e533cb367932111e62fcef547b164cbf6beb2 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sat, 23 Mar 2024 01:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=8A=20bool=20=E5=AD=98?= =?UTF-8?q?=E4=B8=BA=20str=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/index.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/templates/index.html b/app/templates/index.html index 52dae6b..0c93961 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -196,8 +196,21 @@ run_log: "" }, watch: { - 'task.shareurl': function (newVal, oldVal) { + 'task.shareurl': function () { this.task.shareurl_ban = ''; + }, + 'formData.push_config': { + handler: function (newVal, oldVal) { + for (key in newVal) { + if (newVal[key].toLowerCase() === 'false') { + this.$set(this.formData.push_config, key, false); + } + if (newVal[key].toLowerCase() === 'true') { + this.$set(this.formData.push_config, key, true); + } + } + }, + deep: true } }, mounted() {