Skip to content

Commit 6b89a00

Browse files
author
zuofenghua
committed
chore: style
1 parent 28a7604 commit 6b89a00

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ahooks-vue",
3-
"version": "0.12.4",
3+
"version": "0.12.5",
44
"description": "ahooks-vue",
55
"types": "dist/src/index.d.ts",
66
"repository": "https://github.com/dewfall123/ahooks-vue.git",

src/useRequest/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export function useRequest<R = any, P extends any[] = any>(
2121
): UseRequestResult<R, P> {
2222
let contextConfig = {} as Partial<UseRequestOptions<R, P>>;
2323
if (getCurrentInstance()) {
24-
contextConfig =
25-
inject<Partial<UseRequestOptions<R, P>>>(RequestConfig, {});
24+
contextConfig = inject<Partial<UseRequestOptions<R, P>>>(RequestConfig, {});
2625
}
2726
const finalOptions = { ...DefaultOptions, ...contextConfig, ...options };
2827

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
3+
"baseUrl": "./",
44
"outDir": "dist",
55
"sourceMap": false,
66
"target": "es6",

0 commit comments

Comments
 (0)