From a1ce2c5b95ee9b4b428c5031e53b05ef2dc70f3d Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 5 Aug 2023 21:05:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E3=80=81=E6=94=B6=E8=97=8F=E3=80=81=E9=9F=B3=E4=B9=90=E7=AD=89?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=9C=89=E6=97=B6=E5=80=99=E7=99=BD=E5=B1=8F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 27249cd..07463ae 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -800,7 +800,8 @@ export default { showUpdateDateItem: true,// 列表模式下是否显示修改时间 showSizeItem: true,// 列表模式下是否显示文件大小 stopSortChange: false, - draging: 0,// 是否正在拖拽中,0:没有拖拽,1:拖拽中 + draging: 0,// 是否正在拖拽中,0:没有拖拽,1:拖拽中, + getFileListed: false, } }, computed: { @@ -938,6 +939,12 @@ export default { Bus.$on('msg/file/change', (msg) => this.onmessage(msg)) Bus.$on('msg/file/operation/fault', (msg) => this.onmessageFault(msg)) + + setTimeout(() => { + if (!this.getFileListed) { + this.getFileList() + } + }, 50) }, beforeDestroy() { window.removeEventListener('keydown', this.keydown, false) @@ -2120,6 +2127,7 @@ export default { this.path = this.path.replace(/\\/g, '/') }, getFileList(onLoad) { + this.getFileListed = true this.beforeLoadData(onLoad) api.fileList({ userId: this.$store.state.user.userId,