feat: remain in the same position of the list when back from a sub folder

This commit is contained in:
niubility000 2024-03-15 10:53:08 +08:00 committed by GitHub
parent d07c403de3
commit 5cfd4760c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ export default {
try {
await api.move([{ from: oldLink, to: newLink }]);
if (!this.isListing) {
this.$router.push({ path: newLink });
this.$router.replace({ path: newLink });
return;
}