Explorar o código

[edit][fetch]

zhangwei %!s(int64=2) %!d(string=hai) anos
pai
achega
400875a5d9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/http/fetch.js

+ 1 - 0
src/http/fetch.js

@@ -20,6 +20,7 @@ export async function commonFetch({ url, method = 'POST' , params = {}, baseInfo
         let _url = baseAPIUrl + url
         fetch(_url, {
             method: method, // or 'PUT'
+            cache: 'no-cache',
             headers: {
                 'Content-Type': 'application/json',
             },