From ac421e11617b76b6dbc0da43fe3392bd7583c1e5 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 14 Apr 2023 21:55:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=BC=82=E6=AD=A5=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 2 +- src/websocket/sockJS.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 5f3b8e9..05556bc 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1004,7 +1004,7 @@ export default { } if ('deleteFile' === url) { if (index > -1) { - this.fileList.splice(index, 1) + this.getFileList() } } if ('createFile' === url) { diff --git a/src/websocket/sockJS.js b/src/websocket/sockJS.js index 8c3794b..f9ebe1c 100644 --- a/src/websocket/sockJS.js +++ b/src/websocket/sockJS.js @@ -47,11 +47,11 @@ function connect(username,token){ message: `

form:

-
${doc.from}
+
${doc.from}

to:

-
${doc.to}
+
${doc.to}
`, type: 'success', }); @@ -59,7 +59,7 @@ function connect(username,token){ Bus.$notify({ title: `${doc.operation}失败`, dangerouslyUseHTMLString: true, - message: `${doc.msg}`, + message: `${doc.msg}`, type: 'error' }); }