|
@@ -11,7 +11,7 @@ export async function getInitialState(): Promise<any> {
|
|
// 非登录页获取用户信息
|
|
// 非登录页获取用户信息
|
|
if (!window.GT_APP.funcLogin.IsActive) {
|
|
if (!window.GT_APP.funcLogin.IsActive) {
|
|
try {
|
|
try {
|
|
- currentUser = await queryCurrent();
|
|
|
|
|
|
+ currentUser = (await queryCurrent()).data;
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
try {
|
|
try {
|
|
access = await queryAccess(46);
|
|
access = await queryAccess(46);
|