Skip to content

Commit

Permalink
feat(router): enable new routes
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Feb 2, 2022
1 parent da0a2fb commit 2f10af7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
43 changes: 21 additions & 22 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,34 @@ import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory('/'),
routes: [
{
path: '/',
component: () => import('@/views/DamageCalculatorPage.vue'),
meta: {
title: i18n.global.t('pages.damageCalculator'),
},
},
// {
// path: '/',
// component: () => import('@/views/HomePage.vue'),
// meta: {
// title: i18n.global.t('pages.home'),
// },
// },
// {
// path: '/damage',
// component: () => import('@/views/DamageCalculatorPage.vue'),
// meta: {
// title: i18n.global.t('pages.damageCalculator'),
// },
// },
// {
// path: '/creatures',
// component: () => import('@/views/CreaturesLibraryPage.vue'),
// meta: {
// title: i18n.global.t('pages.creaturesLibrary'),
// disabled: true,
// },
// },
{
path: '/',
component: () => import('@/views/HomePage.vue'),
meta: {
title: i18n.global.t('pages.home'),
},
},
{
path: '/damage',
component: () => import('@/views/DamageCalculatorPage.vue'),
meta: {
title: i18n.global.t('pages.damageCalculator'),
},
},
{
path: '/creatures',
component: () => import('@/views/CreaturesLibraryPage.vue'),
meta: {
title: i18n.global.t('pages.creaturesLibrary'),
},
},
{
path: '/:pathMatch(.*)*',
name: 'not-found',
Expand Down
3 changes: 1 addition & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
export default defineComponent({
name: 'HomePage',
Expand All @@ -46,7 +46,6 @@ export default defineComponent({
name: t('pages.creaturesLibrary'),
path: '/creatures',
image: '/images/pages/home/Scholar',
disabled: true,
},
]
Expand Down

0 comments on commit 2f10af7

Please sign in to comment.