From 2944bfca05ff0fce81e90f813925363c34147b50 Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 27 May 2024 11:24:23 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E7=95=8C=E9=9D=A2grid=E8=A7=86=E5=9B=BE=E4=B8=8B=E9=A6=96?= =?UTF-8?q?=E6=AC=A1=E5=88=86=E9=A1=B5=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 19 +++++++++---------- src/layout/components/Sidebar/index.vue | 4 ---- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index ee992b4..d58c6f0 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1253,10 +1253,7 @@ export default { created() {}, watch: { $route(to) { - if ( - to.query.tagId && - this.queryCondition.tagId !== this.$route.query.tagId - ) { + if (to.query.tagId && this.queryCondition.tagId !== this.$route.query.tagId) { this.queryCondition.tagId = this.$route.query.tagId this.getFileList() } @@ -1514,9 +1511,6 @@ export default { this.onCreateFilename = '' }, 2000) }, - load() { - this.getFileList(true) - }, gridItemClick(row) { if (this.selectFile) { this.fileClick(row) @@ -1548,8 +1542,11 @@ export default { ) const lastPageSize = this.pagination.pageSize const thisPageSize = gridRowNum * this.gridColumnNum + this.gridColumnNum - if (thisPageSize !== lastPageSize && this.$route.path === '/') { + if (thisPageSize !== lastPageSize) { this.pagination.pageSize = thisPageSize + if (this.$route.query.tagId) { + this.queryCondition.tagId = this.$route.query.tagId + } this.getFileList() } @@ -2714,7 +2711,9 @@ export default { }) this.$refs.fileListTable.reloadData(this.fileList) setTimeout(() => { - this.$refs.fileListTable.reloadData(this.fileList) + if (this.$refs.fileListTable) { + this.$refs.fileListTable.reloadData(this.fileList) + } }, 0) } // 数据全部加载完成 @@ -3055,7 +3054,7 @@ export default { if (this.listModeSearch) { this.searchFile(this.searchFileName) } else { - this.getFileList() + this.containerResize() } } }, diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index c1d11d5..3e16e43 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -221,10 +221,6 @@ export default { tagClick(tag) { this.$router.push(`/tag?tagId=${tag.id}`); }, - mouseleave() { - }, - onmousemove() { - }, progressFormat() { if (this.takeUpSpace === 0) { this.takeUpSpace = this.userInfo.takeUpSpace