|
@@ -1,13 +1,20 @@
|
|
|
<template>
|
|
|
<div class="home">
|
|
|
<h2>欢迎使用Prototype Design, 请您根据您的需要设计您的Prototype</h2>
|
|
|
+ <a-button type="primary" @click="goToLogin" class="center-button">Go To Login</a-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
+<script setup>
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
|
|
|
-export default {}
|
|
|
+const router = useRouter();
|
|
|
+
|
|
|
+function goToLogin() {
|
|
|
+ router.push({ name: 'login' });
|
|
|
+}
|
|
|
</script>
|
|
|
+
|
|
|
<style>
|
|
|
.home {
|
|
|
height: 100vh;
|
|
@@ -16,4 +23,8 @@ export default {}
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
+.center-button {
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
</style>
|