<template>
  <div class="flex items-center justify-center h-full">
    <el-button type="primary" size="large" @click="showLogin = true">打开登录弹窗</el-button>
    <LoginDialog v-model="showLogin" @login-success="onLoginSuccess" />
  </div>
</template>

<script setup>
import { ref } from 'vue';
import LoginDialog from '@/components/LoginDialog.vue';

const showLogin = ref(false);

function onLoginSuccess(user) {
  console.log('登录成功:', user);
}
</script>
