feat:删除拉流代理时,提示是否确认删除,防止误删
This commit is contained in:
parent
a2d93fce81
commit
1bdc0621b8
@ -245,18 +245,25 @@
|
|||||||
},
|
},
|
||||||
deleteStreamProxy: function(row){
|
deleteStreamProxy: function(row){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$axios({
|
this.$confirm('确定删除此代理吗?', '提示', {
|
||||||
method:"delete",
|
confirmButtonText: '确定',
|
||||||
url:"/api/proxy/del",
|
cancelButtonText: '取消',
|
||||||
params:{
|
type: 'warning'
|
||||||
app: row.app,
|
}).then(() => {
|
||||||
stream: row.stream
|
that.$axios({
|
||||||
}
|
method:"delete",
|
||||||
}).then((res)=>{
|
url:"/api/proxy/del",
|
||||||
that.initData()
|
params:{
|
||||||
}).catch(function (error) {
|
app: row.app,
|
||||||
console.log(error);
|
stream: row.stream
|
||||||
});
|
}
|
||||||
|
}).then((res)=>{
|
||||||
|
that.initData()
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
});
|
||||||
},
|
},
|
||||||
start: function(row){
|
start: function(row){
|
||||||
this.stopUpdateList()
|
this.stopUpdateList()
|
||||||
|
Loading…
Reference in New Issue
Block a user