perf: 优化"最近"界面删除文件自动刷新的问题

This commit is contained in:
jmal 2024-09-09 09:42:39 +08:00
parent 7b54f983a2
commit 0168b0151e

View File

@ -1493,7 +1493,7 @@ export default {
} }
} }
const isCurrentPath = (this.path + '/') === fileDoc const isCurrentPath = (this.path + '/') === fileDoc
if ('deleteFile' === url && isCurrentPath) { if ('deleteFile' === url && (isCurrentPath || this.$route.path.startsWith('/recently'))) {
this.getFileListEnter() this.getFileListEnter()
} }
if ('createFile' === url) { if ('createFile' === url) {