提交 e0c27f83 编写于 作者: R Renic1

用户退出清除缓存完成

上级 4b331f55
......@@ -88,6 +88,9 @@
getApp().globalData.school = res.result.data.school
getApp().globalData.moblie = res.result.data.phone_num
getApp().globalData.gender = res.result.data.gender
getApp().globalData.teamNameStorageCount=1,
getApp().globalData.runningRecordStorageCount=1,
getApp().globalData.walkingRecordStorageCount=1,
console.log(res)
uni.showToast({
title: '登录成功',
......
......@@ -130,12 +130,13 @@
this.nickname = getApp().globalData.name;
this.schoolName = getApp().globalData.school;
this.userId = getApp().globalData.userId;
console.log(getApp().globalData.teamNameStorageCount);
if(getApp().globalData.teamNameStorageCount==1) {//增删改查
this.getData();
}else {
uni.getStorage({
key: 'teamName_key',
success: function (res) {
success: (res)=> {
console.log(res.data);
this.teamName=res.data;
console.log(this.teamName);
......
......@@ -47,6 +47,8 @@
animationDuration: 300
})
this.$refs.alertDialog.close();
uni.clearStorage();
console.log(1);
},
dialogClose() {
this.$refsalertDialog.close();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册