feat:删除拉流代理时,提示是否确认删除,防止误删

This commit is contained in:
winfed 2023-06-09 15:50:33 +08:00 committed by GitHub
parent a2d93fce81
commit 1bdc0621b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,6 +245,11 @@
}, },
deleteStreamProxy: function(row){ deleteStreamProxy: function(row){
let that = this; let that = this;
this.$confirm('确定删除此代理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.$axios({ that.$axios({
method:"delete", method:"delete",
url:"/api/proxy/del", url:"/api/proxy/del",
@ -256,6 +261,8 @@
that.initData() that.initData()
}).catch(function (error) { }).catch(function (error) {
console.log(error); console.log(error);
});
}).catch(() => {
}); });
}, },
start: function(row){ start: function(row){