提交 3aecaae5 authored 作者: 王鹏飞's avatar 王鹏飞

调整登录模块

上级 34a26eab
...@@ -101,9 +101,9 @@ export default { ...@@ -101,9 +101,9 @@ export default {
domain: '.ezijing.com' domain: '.ezijing.com'
}) })
this.$store.commit('setToken', response.data.TGC) this.$store.commit('setToken', response.data.TGC)
wx.miniProgram.postMessage({ data: { token: response.data.TGC } })
if (this.isWeapp) { if (this.isWeapp) {
wx.miniProgram.navigateBack() // wx.miniProgram.navigateBack()
wx.miniProgram.postMessage({ data: { token: response.data.TGC } })
return return
} }
if (this.redirectURI) { if (this.redirectURI) {
......
<template></template> <template>
<van-button type="default" @click="logout">退出登录</van-button>
</template>
<script> <script>
import { logout } from '@/api/account.js'
export default { export default {
name: 'my' name: 'my',
methods: {
logout() {
logout().then(response => {
this.$toast('退出成功')
})
}
}
} }
</script> </script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论