fix:首页调用鉴权接口;用药提醒框:字体太小,需调整展示位置;视力测试:视力结果保留一位小数(例:4.0 5.0)

This commit is contained in:
2024-06-19 22:25:50 +08:00
parent c30fba1ec2
commit db46299b8c
3 changed files with 40 additions and 9 deletions

View File

@@ -111,5 +111,16 @@ export default {
else{
return false
}
},
// 有缓存信息,就访问登录接口,没有缓存就直接返回未登录
checkLoginPro(){
// let token = uni.getStorageSync('access_token')
let u_info = uni.getStorageSync('userInfo')
if(u_info){ // 有缓存信息,访问登录接口
return true
}
else{
return false
}
}
}