授权成功默认跳转首页

h5
wangdong 5 months ago
parent 7bae32ab1f
commit 34057a8a9a
  1. 5
      pages/login/auth.vue

@ -162,7 +162,10 @@ export default {
}, },
back() { back() {
if (this.formData.avatar_id && this.formData.nickname && this.formData.nickname.indexOf('微信用户') === -1) { if (this.formData.avatar_id && this.formData.nickname && this.formData.nickname.indexOf('微信用户') === -1) {
uni.navigateBack(); // uni.navigateBack();
uni.reLaunch({
url: '/pages/index/index'
})
} else { } else {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',

Loading…
Cancel
Save