fix: 修复删除文件异步通知

This commit is contained in:
jmal 2023-04-14 21:55:50 +08:00
parent 4e365d5802
commit ac421e1161
2 changed files with 4 additions and 4 deletions

View File

@ -1004,7 +1004,7 @@ export default {
}
if ('deleteFile' === url) {
if (index > -1) {
this.fileList.splice(index, 1)
this.getFileList()
}
}
if ('createFile' === url) {

View File

@ -47,11 +47,11 @@ function connect(username,token){
message: `
<div>
<p>form:</p>
<pre style="word-break: break-all;white-space: pre-wrap;">${doc.from}</pre>
<pre style="word-break: break-all;white-space: pre-wrap;font-size: 12px;">${doc.from}</pre>
</div>
<div>
<p>to:</p>
<pre style="word-break: break-all;white-space: pre-wrap;">${doc.to}</pre>
<pre style="word-break: break-all;white-space: pre-wrap;font-size: 12px;">${doc.to}</pre>
</div>`,
type: 'success',
});
@ -59,7 +59,7 @@ function connect(username,token){
Bus.$notify({
title: `${doc.operation}失败`,
dangerouslyUseHTMLString: true,
message: `<span>${doc.msg}</span>`,
message: `<span style="font-size: 12px;">${doc.msg}</span>`,
type: 'error'
});
}