进一步完善个人资料页面

Signed-off-by: YangWork <yang@xixingwl.cn>
This commit is contained in:
YangWork
2023-02-17 18:03:25 +08:00
parent b77282d0dc
commit 3ea011d565
4 changed files with 21 additions and 31 deletions

View File

@@ -29,7 +29,7 @@ instance.interceptors.response.use(
response => {
if (response.statusCode == 200) {
let res = response.data;
if (res.hasOwnProperty('token'))
if (res.hasOwnProperty('token') && res.token!= "")
uni.setStorageSync('token', res.token);
return response.data
}