You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
519 B
28 lines
519 B
|
4 years ago
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
||
|
|
import Trackers from "../views/Trackers";
|
||
|
|
import Settings from "../views/Settings";
|
||
|
|
|
||
|
|
Array.prototype.pushToBeginning = function (toPush) {
|
||
|
|
return this.unshift.apply(this, [toPush]);
|
||
|
|
}
|
||
|
|
|
||
|
|
const routes = [
|
||
|
|
{
|
||
|
|
path: '/',
|
||
|
|
name: 'Trackers',
|
||
|
|
component: Trackers
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/settings',
|
||
|
|
name: 'Settings',
|
||
|
|
component: Settings
|
||
|
|
},
|
||
|
|
]
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHashHistory(),
|
||
|
|
routes
|
||
|
|
})
|
||
|
|
|
||
|
|
export default router
|