gamebrary/src/router/index.js

33 lines
763 B
JavaScript
Raw Normal View History

2018-10-19 05:15:28 +00:00
import Vue from 'vue';
import Router from 'vue-router';
import ShareList from '@/pages/ShareList/ShareList';
2019-01-24 06:15:00 +00:00
import GameBoard from '@/pages/GameBoard/GameBoard';
import Platforms from '@/pages/Platforms/Platforms';
2018-10-19 05:15:28 +00:00
Vue.use(Router);
export default new Router({
2019-02-06 06:55:15 +00:00
mode: 'history',
2018-10-19 05:15:28 +00:00
routes: [
{
2019-02-16 04:45:14 +00:00
path: '/s',
name: 'share-list',
2018-10-19 05:15:28 +00:00
component: ShareList,
},
{
name: 'platforms',
path: '/platforms',
component: Platforms,
2018-11-05 02:27:14 +00:00
meta: {
title: 'Platforms',
},
},
2018-10-19 05:15:28 +00:00
{
path: '/',
2019-01-24 06:15:00 +00:00
name: 'game-board',
component: GameBoard,
2018-10-19 05:15:28 +00:00
},
2019-02-08 06:03:24 +00:00
{ path: '*', component: GameBoard },
2018-10-19 05:15:28 +00:00
],
});