修改删除正在编辑的文件的提示

This commit is contained in:
街角小林 2024-03-13 20:16:48 +08:00
parent 90372168b4
commit a4d4989bae

View File

@ -104,7 +104,7 @@ export default {
.then(async () => {
let res = await window.electronAPI.deleteFile(file)
if (res) {
this.$message.error('删除失败')
this.$message.error(res || '删除失败')
} else {
this.list.splice(index, 1)
this.$message.success('删除成功')