Skip to content

Commit 01f9c17

Browse files
committed
refactor(context): provide type
1 parent 667f94e commit 01f9c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const setUseRequestConfig = (app: App, options?: RequestConfigType) => {
3737
},
3838
});
3939
} else {
40-
app.provide(AXIOS_USE_VUE_PROVIDE_KEY, options);
40+
app.provide(AXIOS_USE_VUE_PROVIDE_KEY, options || {});
4141
}
4242
};
4343

0 commit comments

Comments
 (0)