|
|
@@ -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, |
|
|
|