|
@@ -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)
|
|
|
}
|
|
|
})
|