From 3f289fb5d85669b915cfcd6b27e1e597a9cf31b5 Mon Sep 17 00:00:00 2001 From: xc Date: Wed, 10 Sep 2025 16:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=BF=94=E5=9B=9E=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E7=9B=AE=E5=BD=95=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/afvue/src/views/Sfilecompare.vue | 29 ++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/vue/afvue/src/views/Sfilecompare.vue b/vue/afvue/src/views/Sfilecompare.vue index e434a80..791f82b 100644 --- a/vue/afvue/src/views/Sfilecompare.vue +++ b/vue/afvue/src/views/Sfilecompare.vue @@ -11,7 +11,7 @@ - +
@@ -165,10 +165,31 @@ export default { // 清空路径 this.fspath = '/' this.sspath = '/' - // - }, + // 上一级目录 + // 移除最后一个文件 + goParent(){ + // 第一个服务器 + if(this.fspath != '/'){ + let npath = this.fspath.split('/') + // 弹出最后一个元素 + npath.pop() + this.fspath = npath.join('/') + // 调用方法 + this.getFlist() + } + // 第二个服务器 + if(this.sspath != '/'){ + let npath = this.sspath.split('/') + npath.pop() + this.sspath = npath.join('/') + // 调用方法 + this.getSflist() + } + } + + } }