Skip to content

Commit

Permalink
refactor(context): provide type
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Jul 24, 2024
1 parent 354116e commit 7376158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {});
}
};

Expand Down

0 comments on commit 7376158

Please sign in to comment.