refactor: 取消分享添加提示

This commit is contained in:
jmal 2023-07-18 17:04:16 +08:00
parent 6b5cb7f736
commit 67086c47ca

View File

@ -443,6 +443,12 @@
}, },
// 取消分享 // 取消分享
cancelShare(row) { cancelShare(row) {
let title = row === false ? '确定要取消选中的' + this.selectRowData.length + '项分享吗?' : '确定要取消分享 "' + row.fileName + '" 吗?'
this.$confirm(title, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let shareIds = [] let shareIds = []
if(row){ if(row){
shareIds.push(row.id) shareIds.push(row.id)
@ -461,6 +467,7 @@
this.getFileList() this.getFileList()
} }
}) })
})
}, },
// 点击文件或文件夹 // 点击文件或文件夹
fileClick(row) { fileClick(row) {