This commit is contained in:
谢宇宁
2026-10-09 17:39:35 +07:00
parent 406b575139
commit cc37cc173a
21 changed files with 95 additions and 1155 deletions
+1 -23
View File
@@ -1,29 +1,7 @@
<template>
<div id="appView">
<router-view></router-view>
<!-- 登陆 -->
<login-com v-model="showLogin" @regist="showRegist= true" @forgotPasswordFn="showForgotPassword = true" />
<!-- 注册 -->
<regist-com v-model="showRegist" @login="showLogin = true" />
<!-- 忘记密码 -->
<forgot-password v-model="showForgotPassword" @login="showLogin = true" />
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import loginCom from '@/components/login/index.vue'
import registCom from '@/components/login/regist.vue'
import forgotPassword from '@/components/login/forgotPassword.vue'
import { eventBus } from "@/utils/eventBus";
const showLogin = ref(false)
const showRegist = ref(false)
const showForgotPassword = ref(false)
// 监听登陆
eventBus.on('SHOW_LOGIN', () => {
showLogin.value = true
})
</script>
<script setup lang="ts"></script>
<style scoped lang="scss"></style>