Skip to content

Commit

Permalink
perf: 优化"最近"界面删除文件自动刷新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Sep 9, 2024
1 parent 7b54f98 commit 0168b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ShowFile/ShowFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ export default {
}
}
const isCurrentPath = (this.path + '/') === fileDoc
if ('deleteFile' === url && isCurrentPath) {
if ('deleteFile' === url && (isCurrentPath || this.$route.path.startsWith('/recently'))) {
this.getFileListEnter()
}
if ('createFile' === url) {
Expand Down

0 comments on commit 0168b01

Please sign in to comment.