Skip to content

Commit

Permalink
big fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nanguaguag committed Dec 17, 2024
1 parent 5bb0b06 commit 3d3103b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions pages/selfPage/settingsPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Page({
let thisUserInfo = this.data.userInfo;
if (thisUserInfo.role === "technician") {
// 保存技术员信息
// setTechInfo(thisUserInfo);
setTechInfo(thisUserInfo);
}
// 保存用户信息
if (JSON.stringify(thisUserInfo) === JSON.stringify(userInfoOriginal)) {
Expand Down Expand Up @@ -271,12 +271,7 @@ Page({
app.globalData.code = null;
app.globalData.openid = null;
app.globalData.accessToken = null;
app.globalData.ticketList = [];
app.globalData.isloggedin = false;
app.globalData.code = null;
app.globalData.openid = null;
app.globalData.accessToken = null;
// console.log(app.globalData);
console.log("已清空所有数据");
this.reloadData();
wx.navigateBack();
}).catch(() => {
Expand Down
2 changes: 1 addition & 1 deletion utils/req.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ function getUserInfo() {
} else if (res.data.success === true) {
let tmpData = res.data.data;
console.log("获取用户数据成功", res);
app.globalData.accessToken = tmpData.access_token;
// app.globalData.accessToken = tmpData.access_token;
// 设置用户信息
app.globalData.userInfo.uid = tmpData.id;
app.globalData.userInfo.role = tmpData.role;
Expand Down

0 comments on commit 3d3103b

Please sign in to comment.