feat: remain in the same position when back from a subfolder

This commit is contained in:
niubility000 2024-03-23 18:10:36 +08:00 committed by GitHub
parent 87d39c434c
commit 9931f20f77
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;
}