Skip to content

Commit

Permalink
fix: twice requests in menus page (#4622)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Sep 22, 2023
1 parent f953201 commit b963f3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion console/src/modules/interface/menus/Menus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const handleDelete = async (menuItem: MenuTreeItem) => {
<div class="m-0 md:m-4">
<div class="flex flex-col gap-4 sm:flex-row">
<div class="w-96">
<MenuList v-model:selected-menu="selectedMenu" @select="refetch()" />
<MenuList v-model:selected-menu="selectedMenu" />
</div>
<div class="flex-1">
<VCard :body-class="['!p-0']">
Expand Down
2 changes: 0 additions & 2 deletions console/src/modules/interface/menus/components/MenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const props = withDefaults(
);
const emit = defineEmits<{
(event: "select", menu: Menu): void;
(event: "update:selectedMenu", menu: Menu): void;
}>();
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit b963f3b

Please sign in to comment.