From 9067ef9e7792ab67e01e35baa1f8e39ae8737cb3 Mon Sep 17 00:00:00 2001 From: alongw Date: Sun, 17 Sep 2023 00:10:24 +0800 Subject: [PATCH] Feat: optimized code --- frontend/src/widgets/UserInstanceList.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/widgets/UserInstanceList.vue b/frontend/src/widgets/UserInstanceList.vue index 145b3a10..72cb33f0 100644 --- a/frontend/src/widgets/UserInstanceList.vue +++ b/frontend/src/widgets/UserInstanceList.vue @@ -69,12 +69,12 @@ const getInstanceList = async () => { }); }; -const operate = (e: { serviceUuid: string; instanceUuid: string }) => { +const operate = (serviceUuid: string, instanceUuid: string) => { router.push({ path: "/instances/terminal", query: { - daemonId: e.serviceUuid, - instanceId: e.instanceUuid + serviceUuid, + instanceUuid } }); }; @@ -96,7 +96,7 @@ onMounted(() => { >