pages/login/login.vue
@@ -29,6 +29,13 @@ } }; }, onShow(){ // 清除缓存 if(uni.getStorageSync('userInfo')||uni.getStorageSync('access_token')||uni.getStorageSync('refresh_token')){ this.$u.toast('成功进入登录页'); uni.clearStorageSync(); } }, methods:{ loginSubmit(){ console.log('点击登录');