Browse Source

菜单

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

+ 4
- 4
src/app.jsx View File

@@ -408,13 +408,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