chore(frontend): update shortcut store

This commit is contained in:
Steven
2023-11-10 10:11:02 +08:00
parent b3e766926d
commit f3f2218e91
6 changed files with 36 additions and 31 deletions

View File

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