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

This commit is contained in:
syuilo 2025-12-04 19:03:41 +09:00
parent daf2a57b3c
commit fc1e2229e5
2 changed files with 2 additions and 1 deletions

View File

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

View File

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