perf: 优化首页文件路径

This commit is contained in:
jmal 2024-05-22 16:12:34 +08:00
parent a9439dbb50
commit 1decbfa30e

View File

@ -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})
},