|
|
@ -81,18 +81,18 @@ router.beforeEach(async (to, from, next) => { |
|
|
|
} |
|
|
|
}else{ |
|
|
|
// 重新获取api接口表头
|
|
|
|
const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames") |
|
|
|
if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){ |
|
|
|
getInterfaceBoard().then(result => { |
|
|
|
let _zh = localStorage.getItem('columnsApiNamesZh') |
|
|
|
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.localization.values[_zh])); |
|
|
|
setTimeout(()=>{ |
|
|
|
next() |
|
|
|
},0) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
next() |
|
|
|
} |
|
|
|
// const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
|
|
|
|
// if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){
|
|
|
|
getInterfaceBoard().then(result => { |
|
|
|
let _zh = localStorage.getItem('columnsApiNamesZh') |
|
|
|
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.localization.values[_zh])); |
|
|
|
setTimeout(()=>{ |
|
|
|
next() |
|
|
|
},0) |
|
|
|
}) |
|
|
|
// }else{
|
|
|
|
// next()
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|