Skip to content

Commit 9fe446c

Browse files
committed
redirect home page to boards
1 parent f8e5b77 commit 9fe446c

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

src/pages/boards/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ const boards = ref<Partial<Board>[]>([
2424
order: "[]",
2525
},
2626
]);
27+
28+
function createBoard() {
29+
console.log("board created");
30+
}
2731
</script>
2832

2933
<template>
3034
<h1 class="text-3xl mb-5">Boards</h1>
3135
<div class="flex">
3236
<BoardCard v-for="board in boards" :key="board.id" :board="board" />
33-
<button class="text-gray-500" @click="createBoard(newBoardTemplate)">
37+
<button class="text-gray-500" @click="createBoard()">
3438
<span>New Board +</span>
3539
</button>
3640
</div>

src/pages/index.vue

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
<script setup lang="ts"></script>
2-
<template>
3-
<div class="flex justify-center items-center h-[80vh]">
4-
<div class="text-center">
5-
<img
6-
class="block"
7-
src="https://vuejsforge.com/images/logo.svg"
8-
alt="Vue.js Forge"
9-
/>
10-
<AppButton class="block">
11-
<a href="https://vi.to/hubs/vuejs-forge/" target="_blank">Get Started</a>
12-
</AppButton>
13-
</div>
14-
</div>
15-
</template>
1+
<script lang="ts" setup>
2+
import { useRouter } from "vue-router";
3+
const router = useRouter();
4+
router.push("/boards");
5+
</script>

0 commit comments

Comments
 (0)