浏览代码

优化版本更新

Michael Wang 6 年之前
父节点
当前提交
e951eb74d0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/features/Login/Login.vue

+ 1 - 0
src/features/Login/Login.vue

@@ -428,6 +428,7 @@ export default {
       const response = await fetch(
         document.scripts[document.scripts.length - 1].src,
         {
+          method: process.env.NODE_ENV === "development" ? "GET" : "HEAD",
           headers: myHeaders,
         }
       );