Browse Source

暂存

master
安虹睿 1 year ago
parent
commit
3875b40814
  1. 10
      Code/Fe/src/permission.js

10
Code/Fe/src/permission.js

@ -83,8 +83,8 @@ router.beforeEach(async (to, from, next) => {
}
}else{
// 重新获取api接口表头
// const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
// if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){
const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){
getInterfaceBoard().then(result => {
// todo-new:columnsApiNamesZh配置的地址补全(evel)
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.resources[_zh].texts));
@ -92,9 +92,9 @@ router.beforeEach(async (to, from, next) => {
next()
},0)
})
// }else{
// next()
// }
}else{
next()
}
}

Loading…
Cancel
Save