amber-ui/src/pages/guest/index.vue
2024-09-10 16:29:08 +08:00

25 lines
584 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="flex items-center align-center justify-center h-full">
<div class="text-center">
<div class="mt-5 !ml-2">
<n-h1> 满身星光不负众望 </n-h1>
<n-p> </n-p>
</div>
<br />
<n-button v-if="!userStore.logined" type="primary" @click="login"> 登录 </n-button>
</div>
</div>
</template>
<script setup lang="ts">
import router from "../../plugins/router";
import { useUserStore } from "../../stores/user";
const userStore = useUserStore();
const login = () => {
router.push("/auth/login");
};
</script>