From 9300a566d501875831af6a6069dd5f9d8d4bfe40 Mon Sep 17 00:00:00 2001 From: a20070322 <1031839775@qq.com> Date: Thu, 2 Jan 2025 16:42:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20ssh=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=88=97=E8=A1=A8=E5=B7=A6=E4=BE=A7=E6=8E=92=E5=BA=8F?= =?UTF-8?q?bug,=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-vue/src/pages/ssh/ssh-file.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web-vue/src/pages/ssh/ssh-file.vue b/web-vue/src/pages/ssh/ssh-file.vue index e0e6e40f8..b503013b3 100644 --- a/web-vue/src/pages/ssh/ssh-file.vue +++ b/web-vue/src/pages/ssh/ssh-file.vue @@ -71,7 +71,7 @@ { + const aV = a[this.sortMethod.key] || '' + const bV = b[this.sortMethod.key] || '' + return this.sortMethod.asc ? bV.localeCompare(aV) : aV.localeCompare(bV) + }) } }, mounted() { @@ -649,6 +656,11 @@ export default { // 加载数据 loadData() { this.loading = true + this.treeList = [] + this.fileList = [] + this.selectedKeys = [] + this.expandedKeys = [] + this.tempNode = {} getRootFileList(this.baseUrl, this.reqDataId).then((res) => { if (res.code === 200) { this.treeList = res.data -- Gitee