zhaoy 9 mesi fa
parent
commit
a1d88a4448
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      src/app.jsx

+ 4
- 4
src/app.jsx Vedi File

@@ -291,13 +291,13 @@ export async function getInitialState() {
// 如果是登录页面,不执行
if (history.location.pathname !== loginPath) {
const currentUser = await fetchUserInfo();
var tempMenu = await queryMenuData();
//var tempMenu = await queryMenuData();
//创建菜单
//await syncMenus(tempMenu);
if (isDev) {
//if (isDev) {
var data = await dymicMenus(currentUser.data.id);
tempMenu = data.data;
}
var tempMenu = data.data;
//}

return {
fetchUserInfo,


Caricamento…
Annulla
Salva