为Welcome页面添加跳转功能 - 开始体验和立即体验按钮跳转到登录页面
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<a href="#" class="nav-link">分镜视频</a>
|
<a href="#" class="nav-link">分镜视频</a>
|
||||||
<a href="#" class="nav-link">订阅套餐</a>
|
<a href="#" class="nav-link">订阅套餐</a>
|
||||||
</nav>
|
</nav>
|
||||||
<button class="nav-button">开始体验</button>
|
<button class="nav-button" @click="goToLogin">开始体验</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<span class="bright-text">灵感</span><span class="fade-text">变现。</span>
|
<span class="bright-text">灵感</span><span class="fade-text">变现。</span>
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<button class="main-button">立即体验</button>
|
<button class="main-button" @click="goToLogin">立即体验</button>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- 背景光影效果已删除 -->
|
<!-- 背景光影效果已删除 -->
|
||||||
@@ -32,6 +32,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
|
// 跳转到登录页面
|
||||||
|
const goToLogin = () => {
|
||||||
|
router.push('/login')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user