Browse Source

注释token

zhangxc 5 years ago
parent
commit
a46ba08125
2 changed files with 4 additions and 5 deletions
  1. 0 1
      src/index.js
  2. 4 4
      src/js/util.js

+ 0 - 1
src/index.js

@@ -16,7 +16,6 @@ function setListHei(){
 setListHei()
 
 
-$('.flawList').html(str)
 function getFLawList(){
     post(api.analyzeRun,{behospitalCode:behospitalCode,hospitalId:hospitalId, modeId:modeId}).then(function(res){
       if(res.data.code==='0'){

+ 4 - 4
src/js/util.js

@@ -71,10 +71,10 @@ const getUrlArgObject = function getQueryString(name) {
 }
 
 const post = function (url, data) {
-  const token = getCookie('accessToken')
-  if(!token&&window.location.href.indexOf('login')==-1){
-    window.location.href = "../login.html"
-  }
+//   const token = getCookie('accessToken')
+//   if(!token&&window.location.href.indexOf('login')==-1){
+//     window.location.href = "../login.html"
+//   }
   return new Utils((resolve, reject) => {
     $.ajax({
       method: 'post',