Browse Source

Merge remote-tracking branch 'origin/uiUptate0629' into testNew

zhouna 4 years ago
parent
commit
8142c1f354
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/js/homeStatic.js

+ 3 - 3
src/js/homeStatic.js

@@ -40,16 +40,16 @@ function goSearchList(){
 }
 //获取字典信息
 function getAllTypes(){
-  const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
+  /*const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
   if(allTypes.length>0){
     renderTab(allTypes)
     return
-  }
+  }*/
   post(config.dictionaryInfo, {}).then((res) => {
     const result = res.data
     if(result.code==='0'){
       const data = result.data[7]||[];
-      localStorage.setItem('allTypes',JSON.stringify(data))
+      //localStorage.setItem('allTypes',JSON.stringify(data))
       renderTab(data)
     }
   })