(pwa) add shortcut

This commit is contained in:
2020-07-18 10:49:03 +02:00
parent 6cbde07c70
commit 2a3d39d3de
5 changed files with 28 additions and 7 deletions

View File

@@ -1,14 +1,15 @@
import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Home from '../views/Home.vue'
import Home from '@/views/Home.vue'
Vue.use(VueRouter)
const routes: Array<RouteConfig> = [
const routes: RouteConfig[] = [
{
path: '/',
name: 'Home',
component: Home
component: Home,
props: (route) => ({ play: route.query.play })
}
]