Skip to content

Commit

Permalink
fix: 重命名之后文件列表没有刷新
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jan 7, 2025
1 parent 7a64809 commit 0eae148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/views/file/ListTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -422,18 +422,19 @@ const handleRename = async () => {
window.$message.success(
`重命名 ${renameModel.value.source} 为 ${renameModel.value.target} 成功`
)
window.$bus.emit('file:refresh')
}
})
} else {
await file.move([{ source, target, force: false }])
window.$message.success(
`重命名 ${renameModel.value.source} 为 ${renameModel.value.target} 成功`
)
window.$bus.emit('file:refresh')
}
})
renameModal.value = false
window.$bus.emit('file:refresh')
}
const handleUnCompress = () => {
Expand Down

0 comments on commit 0eae148

Please sign in to comment.