mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat: ctx 增加 api
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user