Commit 17a143df4ce2a114a561641318e6eaa35b93e689

Authored by luoye
1 parent 812589cf5d

退出登录

Showing 2 changed files with 4 additions and 1 deletions

littleApp_child/pages/Setting/Setting.js View file @ 17a143d
... ... @@ -110,7 +110,7 @@
110 110 wx.setStorageSync('userId', '')
111 111 getApp().globalData.token = ''
112 112 getApp().globalData.userId = ''
113   - that.toLogin()
  113 + wx.navigateBack({})
114 114 }
115 115 },
116 116 fail: function (res) {
littleApp_child/pages/home/home.js View file @ 17a143d
... ... @@ -78,6 +78,9 @@
78 78 this.getUserInfo()
79 79 this.homePage()
80 80 }
  81 + if (!app.globalData.token) {
  82 + this.welcomePage()
  83 + }
81 84 },
82 85 onUnload: function () {
83 86 // 移除监听