gamebrary/src/router/index.js

36 lines
766 B
JavaScript
Raw Normal View History

2018-10-19 05:15:28 +00:00
import Vue from 'vue';
import Router from 'vue-router';
2019-04-18 04:52:21 +00:00
import ShareList from '@/pages/ShareList';
import GameBoard from '@/pages/GameBoard';
import Platforms from '@/pages/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-04-02 04:00:18 +00:00
{
path: '*',
component: GameBoard,
},
2018-10-19 05:15:28 +00:00
],
});