Skip to content

Commit 1decbfa

Browse files
committed
perf: 优化首页文件路径
1 parent a9439db commit 1decbfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/ShowFile/ShowFile.vue

+3
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,9 @@ export default {
26902690
this.path = basePath + path
26912691
this.path = this.path.replace(/\\/g, '/')
26922692
this.path = this.path.replace(/\/\//g, '/')
2693+
if (this.path === '/') {
2694+
this.path = ''
2695+
}
26932696
26942697
this.$store.dispatch('updateMessage', {event: 'storageTypeChange', data: storageType})
26952698
},

0 commit comments

Comments
 (0)