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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
6 deletions
-
apps/vue/src/api/platform/user-favorites-menu/index.ts
-
apps/vue/src/views/dashboard/workbench/index.vue
|
|
|
@ -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, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|