flx: 修复首次后台免登录进来报错bug

This commit is contained in:
Rain_ 2025-07-07 17:53:28 +08:00
parent 850b1e2676
commit a90ff18543

View File

@ -624,7 +624,6 @@ const getModuleMenu = async () => {
// } // }
}; };
onMounted(async () => { onMounted(async () => {
initProjectTitle();
if (window.location.href.indexOf("token") != -1) { if (window.location.href.indexOf("token") != -1) {
console.log("免登录跳转进来了吗----", window.location.href.indexOf("token")); console.log("免登录跳转进来了吗----", window.location.href.indexOf("token"));
const newToken = window.location.href.split("token=")[1].split("&")[0]; const newToken = window.location.href.split("token=")[1].split("&")[0];
@ -654,6 +653,7 @@ onMounted(async () => {
store.setAccountType(data.result.accountType); store.setAccountType(data.result.accountType);
store.setProjectDateAuth(data.menuAuthority); store.setProjectDateAuth(data.menuAuthority);
} }
initProjectTitle();
await getModuleMenu(); await getModuleMenu();
if (COMPANY === "jsyc") { if (COMPANY === "jsyc") {
menuList.value = JSYCMenu; menuList.value = JSYCMenu;