mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 08:04:08 +02:00
enhance(frontend): typed nirax (#16309)
* enhance(frontend): typed nirax * migrate router.replace * fix
This commit is contained in:
@@ -154,7 +154,11 @@ async function save() {
|
||||
|
||||
pageId.value = created.id;
|
||||
currentName.value = name.value.trim();
|
||||
mainRouter.replace(`/pages/edit/${pageId.value}`);
|
||||
mainRouter.replace('/pages/edit/:initPageId', {
|
||||
params: {
|
||||
initPageId: pageId.value,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +193,11 @@ async function duplicate() {
|
||||
pageId.value = created.id;
|
||||
currentName.value = name.value.trim();
|
||||
|
||||
mainRouter.push(`/pages/edit/${pageId.value}`);
|
||||
mainRouter.push('/pages/edit/:initPageId', {
|
||||
params: {
|
||||
initPageId: pageId.value,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async function add() {
|
||||
|
||||
Reference in New Issue
Block a user