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() {