소스 검색

优化:关闭请求器缓存机制

haiyang 21 시간 전
부모
커밋
4ff6841a56
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/http/alova.ts

+ 1 - 0
src/http/alova.ts

@@ -50,6 +50,7 @@ const alovaInstance = createAlova({
     ...AdapterUniapp(),
     // timeout: 7000,
     statesHook: VueHook,
+    cacheFor: null,
 
     beforeRequest: (method) => {
         // 设置默认 Content-Type