Browse Source

菜单

tmp
zhaoy 9 months ago
parent
commit
a1d88a4448
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/app.jsx

+ 4
- 4
src/app.jsx View 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,


Loading…
Cancel
Save