From b963f3bd23e9585f0717093152ecabd1fad715f5 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 22 Sep 2023 17:10:24 +0800 Subject: [PATCH] fix: twice requests in menus page (#4622) Signed-off-by: Ryan Wang --- console/src/modules/interface/menus/Menus.vue | 2 +- console/src/modules/interface/menus/components/MenuList.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/console/src/modules/interface/menus/Menus.vue b/console/src/modules/interface/menus/Menus.vue index 060ec9c557..f44df6d488 100644 --- a/console/src/modules/interface/menus/Menus.vue +++ b/console/src/modules/interface/menus/Menus.vue @@ -195,7 +195,7 @@ const handleDelete = async (menuItem: MenuTreeItem) => {
- +
diff --git a/console/src/modules/interface/menus/components/MenuList.vue b/console/src/modules/interface/menus/components/MenuList.vue index 043712fb49..a2216082fd 100644 --- a/console/src/modules/interface/menus/components/MenuList.vue +++ b/console/src/modules/interface/menus/components/MenuList.vue @@ -35,7 +35,6 @@ const props = withDefaults( ); const emit = defineEmits<{ - (event: "select", menu: Menu): void; (event: "update:selectedMenu", menu: Menu): void; }>(); @@ -76,7 +75,6 @@ const { const menuQuery = useRouteQuery("menu"); const handleSelect = (menu: Menu) => { emit("update:selectedMenu", menu); - emit("select", menu); menuQuery.value = menu.metadata.name; };