refactor: move

This commit is contained in:
xiaojunnuo
2021-02-08 00:21:36 +08:00
parent cfb1034450
commit 82f86d9556
150 changed files with 14691 additions and 2059 deletions
+24
View File
@@ -0,0 +1,24 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Detail from '../views/detail/index.vue'
const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/detail',
name: 'detail',
component: Detail
// component: () => import(/* webpackChunkName: "about" */ '../views/About.vue'
}
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router