Skip to content

Commit 091095c

Browse files
committed
Add leadboard view & route
1 parent 514044f commit 091095c

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

src/router.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ export default new Router({
1010
name: 'home',
1111
component: () => import('./views/Home.vue'),
1212
},
13+
{
14+
path: '/leadboard',
15+
name: 'leadboard',
16+
component: () => import('./views/Leadboard.vue'),
17+
}
1318
],
1419
});

src/views/Home.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
>
99
<cat-profile :cat="cat" />
1010
</div>
11+
<router-link to="/leadboard">Leadboard</router-link>
1112
</div>
1213
</template>
1314

src/views/Leadboard.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template>
2+
<div id="leadboard">
3+
4+
<router-link to="/">Home</router-link>
5+
</div>
6+
</template>
7+
8+
<script lang="ts">
9+
import { Component, Prop, Vue } from 'vue-property-decorator';
10+
11+
@Component({
12+
13+
})
14+
export default class Leadboard extends Vue {
15+
16+
}
17+
</script>
18+
19+
<style lang="scss" scoped>
20+
21+
</style>

0 commit comments

Comments
 (0)