瀏覽代碼

接口调试

zhouna 4 年之前
父節點
當前提交
24cc4da839
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 2
      src/index.js
  2. 3 2
      src/js/util.js

+ 1 - 2
src/index.js

@@ -55,8 +55,7 @@ function renderFlawList(data){
                         <td>${flawList[i].modelName}</td>
                         <td><div class="flawItemMsgBox">${flawList[i].msg}${flawList[i].info ? "("+flawList[i].info + ")" :''}</div></td>
                         <td class="flawItemScore"><span class="flawItemNum">${flawList[i].score}</span></td>
-                       </tAI质控
-r>`;
+                       </tr>`;
         str += flawItem;
         
     }

+ 3 - 2
src/js/util.js

@@ -71,7 +71,7 @@ const getUrlArgObject = function getQueryString(name) {
 }
 
 const post = function (url, data) {
-//   const token = getCookie('accessToken')
+   setCookie('');
 //   if(!token&&window.location.href.indexOf('login')==-1){
 //     window.location.href = "../login.html"
 //   }
@@ -84,7 +84,8 @@ const post = function (url, data) {
       beforeSend: function (xmlHttp) {
         xmlHttp.setRequestHeader("If-Modified-Since", "0");
         xmlHttp.setRequestHeader("Cache-Control", "no-cache");
-        // xmlHttp.setRequestHeader("Authorization",token?"Bearer "+token:'')
+        //xmlHttp.setCookie("");
+         xmlHttp.setRequestHeader("Authorization",'')
       },
       success: function (res) {
         resolve({ data: res });