Commit e705739e authored by 李苏's avatar 李苏 💬

超级用户特殊处理

parent 5b183a3c
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
if(res&&res.data&&res.data.userkey){ if(res&&res.data&&res.data.userkey){
const {userkey}=res.data const {userkey}=res.data
queryUser({id:userkey}).then(e=>{ queryUser({id:userkey}).then(e=>{
that.userinfo=e.records[0] e.records[0]?that.userinfo=e.records[0]:that.userinfo.username='超级用户'
}) })
} }
} }
......
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