删除二次确认

This commit is contained in:
Cp0204 2024-02-28 17:09:27 +08:00
parent edd8f7fa3e
commit ba09ae2f76

View File

@ -191,6 +191,7 @@
this.formData.cookie.push(""); this.formData.cookie.push("");
}, },
removeCookie(index) { removeCookie(index) {
if (confirm("确认删除吗?"))
this.formData.cookie.splice(index, 1); this.formData.cookie.splice(index, 1);
}, },
addPush() { addPush() {
@ -199,6 +200,7 @@
this.$set(this.formData.push_config, key, ""); this.$set(this.formData.push_config, key, "");
}, },
removePush(key) { removePush(key) {
if (confirm("确认删除吗?"))
this.$delete(this.formData.push_config, key); this.$delete(this.formData.push_config, key);
}, },
addTask() { addTask() {
@ -213,6 +215,7 @@
}); });
}, },
removeTask(index) { removeTask(index) {
if (confirm("确认删除吗?"))
this.formData.tasklist.splice(index, 1); this.formData.tasklist.splice(index, 1);
}, },
clearShareurlBan(task) { clearShareurlBan(task) {