mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix(frontend): stacking router viewで連続して戻る操作を行うと何も表示されなくなる問題を修正
This commit is contained in:
@@ -74,6 +74,7 @@ function mount() {
|
||||
}
|
||||
|
||||
function back() {
|
||||
if (tabs.value.length <= 1) return; // transitionの関係でタブが1つの状態でbackが呼ばれることがある
|
||||
const prev = tabs.value[tabs.value.length - 2];
|
||||
tabs.value = [...tabs.value.slice(0, tabs.value.length - 1)];
|
||||
router?.replaceByPath(prev.fullPath);
|
||||
|
||||
Reference in New Issue
Block a user