Commit b56feba0 by 李嘉林

报错处理

parent 1ecfe411
...@@ -179,7 +179,7 @@ wx.onAppRoute(res => { ...@@ -179,7 +179,7 @@ wx.onAppRoute(res => {
} }
if (!userId) { // 防止多次调用 if (!userId) { // 防止多次调用
// 获取当前用户 id // 获取当前用户 id
live.getUserInfo().then(res => { userId = res.data.data.userId }) live.getUserInfo().then(res => { userId = res.data.data?res.data.data.userId:''})
} }
userId && resolve() userId && resolve()
}).then(() => { }).then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment