From 1decbfa30e791707180e767a8e57cdf6aed3902d Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 22 May 2024 16:12:34 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 1ab89e5..06ec334 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2690,6 +2690,9 @@ export default { this.path = basePath + path this.path = this.path.replace(/\\/g, '/') this.path = this.path.replace(/\/\//g, '/') + if (this.path === '/') { + this.path = '' + } this.$store.dispatch('updateMessage', {event: 'storageTypeChange', data: storageType}) },