提交 10f75198 编写于 作者: NoSubject's avatar NoSubject

修复oauth2认证跳转

上级 35a2f328
...@@ -9,6 +9,9 @@ layout.addReady(function(){ ...@@ -9,6 +9,9 @@ layout.addReady(function(){
toUri.setData(uri.getData()); toUri.setData(uri.getData());
toUri.go(); toUri.go();
}; };
_load(); var p = (layout.session && layout.session.user) || layout.sessionPromise;
Promise.resolve(p).then(function(){
_load();
},function(){});
})(layout); })(layout);
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册