From 01f9c179f9316787eff660679ed333571c3ff9bf Mon Sep 17 00:00:00 2001 From: wangcch Date: Wed, 17 Jul 2024 16:16:32 +0800 Subject: [PATCH] refactor(context): provide type --- src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.ts b/src/context.ts index e119c2c..e1bb4ff 100644 --- a/src/context.ts +++ b/src/context.ts @@ -37,7 +37,7 @@ export const setUseRequestConfig = (app: App, options?: RequestConfigType) => { }, }); } else { - app.provide(AXIOS_USE_VUE_PROVIDE_KEY, options); + app.provide(AXIOS_USE_VUE_PROVIDE_KEY, options || {}); } };