fix(frontend): stacking router viewで連続して戻る操作を行うと何も表示されなくなる問題を修正

This commit is contained in:
syuilo 2025-12-04 15:19:15 +09:00
parent a6f57d99f9
commit a3c3052d0f
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
-
### Client
-
- Fix: stacking router viewで連続して戻る操作を行うと何も表示されなくなる問題を修正
### Server
- Enhance: メモリ使用量を削減しました

View File

@ -74,7 +74,9 @@ function mount() {
}
function back() {
const prev = tabs.value[tabs.value.length - 2];
const prev = tabs.value.at(tabs.value.length - 2);
if (prev == null) return; // transitionprevback
tabs.value = [...tabs.value.slice(0, tabs.value.length - 1)];
router?.replaceByPath(prev.fullPath);
}