Commit 2742a920 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

修改

See merge request !89
parents bb608855 4bf6f10d
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
size="20" size="20"
class="nav-left" class="nav-left"
color="#ffffff" color="#ffffff"
@click="$router.go(-1)" @click="handlerBack"
/> />
<img :src="imgSrc" alt="" class="imgCode" /> <img :src="imgSrc" alt="" class="imgCode" />
</div> </div>
...@@ -25,6 +25,14 @@ export default { ...@@ -25,6 +25,14 @@ export default {
this.inviteCode(); this.inviteCode();
}, },
methods: { methods: {
handlerBack() {
try {
this.$bridgeToAppFun.navigateBack();
} catch {
console.log("不能和App交互");
this.$router.go(-1);
}
},
inviteCode() { inviteCode() {
const _this = this; const _this = this;
let loading = _this.$toast.loading({ let loading = _this.$toast.loading({
......
...@@ -84,11 +84,14 @@ export default { ...@@ -84,11 +84,14 @@ export default {
}); });
}, },
logout() { logout() {
logout().then().catch(err => { logout().then(res => {
console.log('后台退出err', err); if (res.code == 0) {
localStorage.clear()
}
}).catch(err => {
console.log(err);
}); });
this.$bridgeToAppFun.logoutToApp(); this.$bridgeToAppFun.logoutToApp();
localStorage.removeItem("token");
}, },
jumpToInstructions() { jumpToInstructions() {
this.$router.push("/instructions"); this.$router.push("/instructions");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment