提交 b8722710 authored 作者: 王鹏飞's avatar 王鹏飞

取消多次调用get-user接口

上级 3380b3bd
...@@ -22,6 +22,7 @@ export default class Before { ...@@ -22,6 +22,7 @@ export default class Before {
/* 获取用户信息 */ /* 获取用户信息 */
isLogin() { isLogin() {
if (window.G.UserInfo) return true
return cAction.Test.getInfo() return cAction.Test.getInfo()
.then(res => { .then(res => {
if (res.code === 0) { if (res.code === 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论