Browse Source

[edit][fetch]

zhangwei 2 years ago
parent
commit
400875a5d9
1 changed files with 1 additions and 0 deletions
  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',
             },