fix(frontend): use native confirm for share/direct-link deletion
This commit is contained in:
@@ -2960,7 +2960,7 @@ handleDragLeave(e) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async deleteDirectLink(id) {
|
async deleteDirectLink(id) {
|
||||||
if (!confirm('确定要删除这个直链吗?')) return;
|
if (!window.confirm('确定要删除这个直链吗?')) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.delete(`${this.apiBase}/api/direct-link/${id}`);
|
const response = await axios.delete(`${this.apiBase}/api/direct-link/${id}`);
|
||||||
@@ -2995,7 +2995,7 @@ handleDragLeave(e) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async deleteShare(id) {
|
async deleteShare(id) {
|
||||||
if (!confirm('确定要删除这个分享吗?')) return;
|
if (!window.confirm('确定要删除这个分享吗?')) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.delete(`${this.apiBase}/api/share/${id}`);
|
const response = await axios.delete(`${this.apiBase}/api/share/${id}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user