chore: update frontend modules

This commit is contained in:
Steven
2023-06-22 18:07:28 +08:00
parent bd627fb250
commit 98fb1264c3
27 changed files with 22 additions and 3884 deletions

View File

@ -15,12 +15,8 @@ const shortcutService = {
return store.getState().shortcut;
},
fetchWorkspaceShortcuts: async (workspaceId: WorkspaceId) => {
const { data } = (
await api.getShortcutList({
workspaceId,
})
).data;
fetchWorkspaceShortcuts: async () => {
const { data } = (await api.getShortcutList({})).data;
const shortcuts = data.map((s) => convertResponseModelShortcut(s));
store.dispatch(setShortcuts(shortcuts));
return shortcuts;