Skip to content

Commit

Permalink
修复把 bool 存为 str 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Mar 22, 2024
1 parent ab573c6 commit 3f929a5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,21 @@ <h5 class="modal-title">执行日志</h5>
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() {
Expand Down

0 comments on commit 3f929a5

Please sign in to comment.