|
|
@@ -112,11 +112,13 @@ struct SettingPage {
|
|
|
bgc: Color.White,
|
|
|
click: () => {
|
|
|
yTToast.doubleConfirm({
|
|
|
- text: '警告⚠', message: '确定要注销吗?\n注销后数据可能丢失无法恢复!', click: () => {
|
|
|
+ text: '警告⚠', message: '确定要注销吗?\n注销后数据可能丢失无法恢复!',
|
|
|
+ click: () => {
|
|
|
userInfo.logout()
|
|
|
yTToast.hide()
|
|
|
yTRouter.routerBack()
|
|
|
- }
|
|
|
+ YTUserRequest.logout()
|
|
|
+ },
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -159,7 +161,7 @@ struct SettingPage {
|
|
|
.fontColor('#80000000')
|
|
|
Row() {
|
|
|
if (item.src === 'head') {
|
|
|
- Image(this.userInfo.getHeadImg() ? this.userInfo.getHeadImg() : $r('app.media.default_img'))
|
|
|
+ Image(this.userInfo.getHeadImg() ? this.userInfo.getHeadImg() : $r('app.media.app_icon'))
|
|
|
.height(24)
|
|
|
.width(24)
|
|
|
.borderRadius(12)
|