Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
zuofenghua committed Dec 27, 2021
1 parent 28a7604 commit 6b89a00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ahooks-vue",
"version": "0.12.4",
"version": "0.12.5",
"description": "ahooks-vue",
"types": "dist/src/index.d.ts",
"repository": "https://github.com/dewfall123/ahooks-vue.git",
Expand Down
3 changes: 1 addition & 2 deletions src/useRequest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export function useRequest<R = any, P extends any[] = any>(
): UseRequestResult<R, P> {
let contextConfig = {} as Partial<UseRequestOptions<R, P>>;
if (getCurrentInstance()) {
contextConfig =
inject<Partial<UseRequestOptions<R, P>>>(RequestConfig, {});
contextConfig = inject<Partial<UseRequestOptions<R, P>>>(RequestConfig, {});
}
const finalOptions = { ...DefaultOptions, ...contextConfig, ...options };

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"baseUrl": ".",
"baseUrl": "./",
"outDir": "dist",
"sourceMap": false,
"target": "es6",
Expand Down

0 comments on commit 6b89a00

Please sign in to comment.