输出日志
This commit is contained in:
@@ -71,12 +71,13 @@ function getUser () {
|
||||
url: urlPrefix + '/user/get',
|
||||
data: { uid: pubInfo.uid },
|
||||
success (res) {
|
||||
console.log(res);
|
||||
if (res.code === 200) {
|
||||
$('.myInfo img').attr('src', res.data.avatar);
|
||||
$('.myInfo div p').text(res.data.nick);
|
||||
$('.myInfo div b').text("ID:" + res.data.erbanNo);
|
||||
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
|
||||
window.location.href = './login.html'
|
||||
// window.location.href = './login.html'
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
|
Reference in New Issue
Block a user