批量检测时继续限制删除功能

This commit is contained in:
buvta
2020-11-07 14:37:59 +08:00
parent 9af55df310
commit 51ba1d87ad
2 changed files with 8 additions and 0 deletions

View File

@@ -258,6 +258,10 @@ export default {
this.getSites()
},
removeEvent (e) {
if (this.checkAllSitesLoading) {
this.$message.info('正在检测, 请勿操作.')
return false
}
sites.remove(e.id).then(res => {
this.getSites()
}).catch(err => {

View File

@@ -220,6 +220,10 @@ export default {
}
},
removeEvent (e) {
if (this.checkAllChannelsLoading) {
this.$message.info('正在检测, 请勿操作.')
return false
}
iptv.remove(e.id).then(res => {
this.getChannels()
}).catch(err => {