mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-12 15:20:44 +08:00
修复把 bool 存为 str 类型
This commit is contained in:
parent
16ebe5c9b8
commit
c71e533cb3
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user