修复把 bool 存为 str 类型

This commit is contained in:
Cp0204 2024-03-23 01:50:03 +08:00
parent 16ebe5c9b8
commit c71e533cb3

View File

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