@@ -95,7 +95,13 @@
}).catch(() => {
_this.authIng = false
})
- }
+ },
+ fail: (res)=>{
+ uni.$u.toast('授权失败');
+ uni.removeStorageSync('token')
+ _this.authIng = false
+ _this.$emit('fail')
+ }
}
@@ -41,7 +41,7 @@
</view>
- <auth :auth-show="authShow" :auth-token="token" @close="authClose" />
+ <auth :auth-show="authShow" :auth-token="token" @close="authClose" @fail="fail" />
</template>
@@ -137,7 +137,10 @@
},
-
+ //拒绝授权
+ fail(){
+ this.authShow = false
// 关闭授权
authClose() {
this.authShow = false
@@ -223,6 +226,7 @@
_this.getBaseInfoAli()
}else{
uni.hideLoading();
+