Explorar el Código

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

haiyang hace 21 horas
padre
commit
4ff6841a56
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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