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 17, 2024
1 parent 667f94e commit 01f9c17
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 01f9c17

Please sign in to comment.