diff --git a/web_src/src/components/StreamProxyList.vue b/web_src/src/components/StreamProxyList.vue index d5533927b..b77b735b2 100644 --- a/web_src/src/components/StreamProxyList.vue +++ b/web_src/src/components/StreamProxyList.vue @@ -240,24 +240,31 @@ }); }, - deleteStreamProxy: function(row){ - let that = this; - this.getListLoading = true; - that.$axios({ - method:"delete", - url:"/api/proxy/del", - params:{ - app: row.app, - stream: row.stream - } - }).then((res)=>{ - that.getListLoading = false; - that.initData() - }).catch(function (error) { - console.log(error); - that.getListLoading = false; - }); - }, + deleteStreamProxy: function(row){ + this.$confirm('确认删除此路数据?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let that = this; + this.getListLoading = true; + that.$axios({ + method:"delete", + url:"/api/proxy/del", + params:{ + app: row.app, + stream: row.stream + } + }).then((res)=>{ + that.getListLoading = false; + that.initData() + }).catch(function (error) { + console.log(error); + that.getListLoading = false; + }); + }).catch(() => { + }); + }, start: function(row){ let that = this; this.getListLoading = true;