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}