Commit 4bf6f10d authored by leiqingsong's avatar leiqingsong

修改

parent fb9fbe93
This diff is collapsed.
......@@ -6,7 +6,7 @@
size="20"
class="nav-left"
color="#ffffff"
@click="$router.go(-1)"
@click="handlerBack"
/>
<img :src="imgSrc" alt="" class="imgCode" />
</div>
......@@ -25,6 +25,14 @@ export default {
this.inviteCode();
},
methods: {
handlerBack() {
try {
this.$bridgeToAppFun.navigateBack();
} catch {
console.log("不能和App交互");
this.$router.go(-1);
}
},
inviteCode() {
const _this = this;
let loading = _this.$toast.loading({
......
......@@ -84,11 +84,14 @@ export default {
});
},
logout() {
logout().then().catch(err => {
console.log('后台退出err', err);
logout().then(res => {
if (res.code == 0) {
localStorage.clear()
}
}).catch(err => {
console.log(err);
});
this.$bridgeToAppFun.logoutToApp();
localStorage.removeItem("token");
},
jumpToInstructions() {
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