Skip to content

Commit

Permalink
refactor: patch ext
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Jun 19, 2023
1 parent 449c044 commit 7e2e197
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion playground/src/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function dataFormatter(response) {
return response.data.data
}

if (['post', 'put', 'delete', 'patch']) {
if (['post', 'put', 'delete', 'patch'].includes(method)) {
return response.data
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './instance'
export * from './use'
export * from './instance.js'
export * from './use.js'
2 changes: 1 addition & 1 deletion src/use.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ref, type Ref, type UnwrapRef } from 'vue'
import { type AxleRequestConfig, createFetchHelper, createModifyHelper } from './instance'
import { type AxleRequestConfig, createFetchHelper, createModifyHelper } from './instance.js'

// default options
export interface CreateUseAxleOptions {
Expand Down

0 comments on commit 7e2e197

Please sign in to comment.