mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 07:04:05 +02:00
enhance(frontend): typed nirax (#16309)
* enhance(frontend): typed nirax * migrate router.replace * fix
This commit is contained in:
@@ -151,7 +151,7 @@ const contextmenu = computed(() => ([{
|
||||
|
||||
function back() {
|
||||
history.value.pop();
|
||||
windowRouter.replace(history.value.at(-1)!.path);
|
||||
windowRouter.replaceByPath(history.value.at(-1)!.path);
|
||||
}
|
||||
|
||||
function reload() {
|
||||
@@ -163,7 +163,7 @@ function close() {
|
||||
}
|
||||
|
||||
function expand() {
|
||||
mainRouter.push(windowRouter.getCurrentFullPath(), 'forcePage');
|
||||
mainRouter.pushByPath(windowRouter.getCurrentFullPath(), 'forcePage');
|
||||
windowEl.value?.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user