From 7aac874fa57dcb6970727cf179cd37a9a3a6cd41 Mon Sep 17 00:00:00 2001 From: xc Date: Tue, 9 Sep 2025 10:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=9E=E8=BD=A6=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/afvue/src/views/Flist.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/vue/afvue/src/views/Flist.vue b/vue/afvue/src/views/Flist.vue index 1dac370..0c2e3a0 100644 --- a/vue/afvue/src/views/Flist.vue +++ b/vue/afvue/src/views/Flist.vue @@ -3,8 +3,11 @@
+
- + +
+
@@ -63,8 +66,17 @@ export default { }) }, sofile(){ - // alert("soobtn") - this.spath = this.$refs.sokey.value + let key = this.$refs.sokey.value + // 正则判断是否包含../ 或 .. + + let reg = /\.\.\// + if(reg.test(key)){ + // 正则替换 + key = key.replace(/\.\.\//g, '') + // return false; + } + this.$refs.sokey.value = key + // this.spath = this.$refs.sokey.value this.getFlist() } }