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 || {}); } };