1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

chore: upgrade to unplug-vue-router (#3041)

This commit is contained in:
Amir Raminfar
2024-06-17 12:07:24 -07:00
committed by GitHub
parent d344c5f20e
commit f24d4951ad
22 changed files with 199 additions and 571 deletions

View File

@@ -166,11 +166,11 @@ useFocus(input, { initialValue: true });
function selected(item: Item) {
if (item.type === "container") {
router.push({ name: "container-id", params: { id: item.id } });
router.push({ name: "/container/[id]", params: { id: item.id } });
} else if (item.type === "service") {
router.push({ name: "service-name", params: { name: item.id } });
router.push({ name: "/service/[name]", params: { name: item.id } });
} else if (item.type === "stack") {
router.push({ name: "stack-name", params: { name: item.id } });
router.push({ name: "/stack/[name]", params: { name: item.id } });
}
close();
}