Browse Source

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

zhouna 3 năm trước cách đây
mục cha
commit
698b794828
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 3 3
      src/js/searchStaticList.js
  2. 1 1
      webpack.config.js

+ 3 - 3
src/js/searchStaticList.js

@@ -38,16 +38,16 @@ function renderTab(data){
   }
 //获取字典信息
 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)
       }
     })

+ 1 - 1
webpack.config.js

@@ -325,7 +325,7 @@ module.exports = {
           loader: 'file-loader',
           options: {
             outputPath: 'images/', // 图片输出的路径和存储路径保持一致
-            limit: 10000,
+            limit: 9000,
             name: '[name].[ext]'
           }
         }