flx: 修复首次后台免登录进来报错bug
This commit is contained in:
parent
850b1e2676
commit
a90ff18543
@ -624,7 +624,6 @@ const getModuleMenu = async () => {
|
||||
// }
|
||||
};
|
||||
onMounted(async () => {
|
||||
initProjectTitle();
|
||||
if (window.location.href.indexOf("token") != -1) {
|
||||
console.log("免登录跳转进来了吗----", window.location.href.indexOf("token"));
|
||||
const newToken = window.location.href.split("token=")[1].split("&")[0];
|
||||
@ -654,6 +653,7 @@ onMounted(async () => {
|
||||
store.setAccountType(data.result.accountType);
|
||||
store.setProjectDateAuth(data.menuAuthority);
|
||||
}
|
||||
initProjectTitle();
|
||||
await getModuleMenu();
|
||||
if (COMPANY === "jsyc") {
|
||||
menuList.value = JSYCMenu;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user