Browse Source

refactor(coach/market):重构退出登录功能

- 移除原有的冗余代码
- 使用 $util.loginOut() 方法统一处理登录退出逻辑
- 提高代码复用性和可维护性
master
liutong 1 year ago
parent
commit
c05136f084
  1. 9
      pages/coach/my/set_up.vue
  2. 9
      pages/market/my/set_up.vue

9
pages/coach/my/set_up.vue

@ -22,13 +22,8 @@
}, },
methods: { methods: {
//退 //退
logOut(){ loginOut(){
// this.$util.loginOut()
uni.removeStorageSync('userInfo');
//
uni.navigateTo({
url: '/pages/student/login/login'
})
}, },
privacy_agreement(type){ privacy_agreement(type){

9
pages/market/my/set_up.vue

@ -22,13 +22,8 @@
}, },
methods: { methods: {
//退 //退
logOut(){ loginOut(){
// this.$util.loginOut()
uni.removeStorageSync('userInfo');
//
uni.navigateTo({
url: '/pages/student/login/login'
})
}, },
privacy_agreement(type){ privacy_agreement(type){

Loading…
Cancel
Save