feat: ctx 增加 api

This commit is contained in:
purocean
2021-07-06 17:21:50 +08:00
parent 6d5e1c1126
commit babb7db537
+2
View File
@@ -1,6 +1,7 @@
import { useBus } from '@fe/support/bus'
import { useToast } from '@fe/support/toast'
import store from '@fe/support/store'
import * as api from '@fe/support/api'
import * as action from './action'
import * as shortcut from './shortcut'
import * as view from './view'
@@ -15,6 +16,7 @@ export type CtxHookType = view.HookType | tree.HookType
const bus = useBus()
const ctx = {
api,
bus,
store,
action,