Commit 8c28a714 authored by 水玉婷's avatar 水玉婷
Browse files

feat:细节优化

parent 23ff5a11
......@@ -443,7 +443,6 @@ onMounted(() => {
height: 100vh;
display: flex;
flex-direction: column;
background-color: #f5f5f5;
position: relative;
overflow: hidden;
}
......
......@@ -14,7 +14,7 @@
</template>
<script>
import { ref, onMounted } from 'vue'
import { ref, onMounted, onUnmounted } from 'vue'
import { useRouter } from 'vue-router'
import wechat from '../utils/wechat'
......@@ -57,6 +57,10 @@ export default {
// 执行静默登录
handleLogin()
})
onUnmounted(() => {
// 组件卸载时,移除登录状态
wechat.logout()
})
return {
loading,
......
Supports Markdown
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