Skip to content

Commit

Permalink
删除二次确认
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Feb 28, 2024
1 parent edd8f7f commit ba09ae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ <h3>任务#<span v-html="index+1"></span></h3>
this.formData.cookie.push("");
},
removeCookie(index) {
if (confirm("确认删除吗?"))
this.formData.cookie.splice(index, 1);
},
addPush() {
Expand All @@ -199,6 +200,7 @@ <h3>任务#<span v-html="index+1"></span></h3>
this.$set(this.formData.push_config, key, "");
},
removePush(key) {
if (confirm("确认删除吗?"))
this.$delete(this.formData.push_config, key);
},
addTask() {
Expand All @@ -213,6 +215,7 @@ <h3>任务#<span v-html="index+1"></span></h3>
});
},
removeTask(index) {
if (confirm("确认删除吗?"))
this.formData.tasklist.splice(index, 1);
},
clearShareurlBan(task) {
Expand Down

0 comments on commit ba09ae2

Please sign in to comment.