Skip to content

Commit

Permalink
update(module/request): update global config
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Dec 29, 2023
1 parent 74b591b commit be86171
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/request/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@ import type { moduleConfig } from "./def";

const config: moduleConfig = {
timeout: 5000,
hooks: {
before: (): boolean => true,
success: (): boolean => true,
failed: (): boolean => true,
callback: (): boolean => true,
},
// hooks: {
// before: (): boolean => true,
// init: (): boolean => true,
// success: (): boolean => true,
// failed: (): boolean => true,
// callback: (): boolean => true,
// },
xhrHooks: {
// before: (): boolean => true,
// init: (): boolean => true,
// success: (): boolean => true,
// failed: (): boolean => true,
// callback: (): boolean => true,
},
fetchHooks: {
// before: (): boolean => true,
// init: (): boolean => true,
// success: (): boolean => true,
// failed: (): boolean => true,
// callback: (): boolean => true,
Expand Down

0 comments on commit be86171

Please sign in to comment.