Преглед изворни кода

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

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