From babb7db537924791b978ad4f207ebc5a67ce2cd0 Mon Sep 17 00:00:00 2001 From: purocean Date: Tue, 6 Jul 2021 17:21:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ctx=20=E5=A2=9E=E5=8A=A0=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/context/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/context/index.ts b/src/renderer/context/index.ts index a75e9e57..e4a588b9 100644 --- a/src/renderer/context/index.ts +++ b/src/renderer/context/index.ts @@ -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,