|
@@ -633,12 +633,9 @@ const tableFileData = ref([])
|
|
const tableDelButton = (index) => {
|
|
const tableDelButton = (index) => {
|
|
const arr = tableFileData.value
|
|
const arr = tableFileData.value
|
|
if (arr.length > 1) {
|
|
if (arr.length > 1) {
|
|
- HcDelMsg({}, async (instance, resolve) => {
|
|
|
|
- instance.confirmButtonLoading = true
|
|
|
|
- instance.confirmButtonText = '删除中...'
|
|
|
|
|
|
+ HcDelMsg( async ( resolve) => {
|
|
tableFileData.value.splice(index, 1)
|
|
tableFileData.value.splice(index, 1)
|
|
resolve() //关闭弹窗的回调
|
|
resolve() //关闭弹窗的回调
|
|
- instance.confirmButtonLoading = false
|
|
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
window?.$message?.warning('至少保留一个文件')
|
|
window?.$message?.warning('至少保留一个文件')
|