Browse Source

Merge pull request #707 from colinin/fix-paramter-match

fixed parameter matching error
pull/708/head
yx lin 3 years ago
committed by GitHub
parent
commit
06b070dee5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      apps/vue/src/api/platform/user-favorites-menu/index.ts
  2. 3
      apps/vue/src/views/dashboard/workbench/index.vue

12
apps/vue/src/api/platform/user-favorites-menu/index.ts

@ -39,9 +39,9 @@ export const del = (userId: string, menuId: string) => {
action: 'DeleteAsync',
params: {
userId: userId,
},
data: {
menuId: menuId,
input: {
MenuId: menuId,
},
},
});
};
@ -51,8 +51,10 @@ export const delMyFavoriteMenu = (menuId: string) => {
service: remoteService.name,
controller: remoteService.controller,
action: 'DeleteMyFavoriteMenuAsync',
data: {
menuId: menuId,
params: {
input: {
MenuId: menuId,
},
},
});
};

3
apps/vue/src/views/dashboard/workbench/index.vue

@ -50,7 +50,7 @@
const defaultFavmenus = useDefaultMenus();
const defineFavmenus = res.items.map((menu) => {
return {
id: menu.id,
id: menu.menuId,
title: menu.aliasName ?? menu.displayName,
icon: menu.icon,
color: menu.color,
@ -80,6 +80,7 @@
function handleDeleteMyFavoriteMenu(menu: Menu) {
delMyFavoriteMenu(menu.id).then(() => {
createMessage.success(L('SuccessfullyDeleted'));
fetchMyFavoriteMenus();
});
}
</script>

Loading…
Cancel
Save