diff --git a/pages/coach/my/set_up.vue b/pages/coach/my/set_up.vue index 6132536..69519e9 100644 --- a/pages/coach/my/set_up.vue +++ b/pages/coach/my/set_up.vue @@ -22,13 +22,8 @@ }, methods: { //退出登陆 - logOut(){ - //清空用户缓存数据 - uni.removeStorageSync('userInfo'); - //跳转登陆页面 - uni.navigateTo({ - url: '/pages/student/login/login' - }) + loginOut(){ + this.$util.loginOut() }, privacy_agreement(type){ diff --git a/pages/market/my/set_up.vue b/pages/market/my/set_up.vue index 1849ad5..1b860c6 100644 --- a/pages/market/my/set_up.vue +++ b/pages/market/my/set_up.vue @@ -22,13 +22,8 @@ }, methods: { //退出登陆 - logOut(){ - //清空用户缓存数据 - uni.removeStorageSync('userInfo'); - //跳转登陆页面 - uni.navigateTo({ - url: '/pages/student/login/login' - }) + loginOut(){ + this.$util.loginOut() }, privacy_agreement(type){