浏览代码

[edit][fetch]

zhangwei 2 年之前
父节点
当前提交
400875a5d9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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',
             },