修改vue版本后重新创建web端和acapp端

This commit is contained in:
2023-01-14 22:12:17 +08:00
parent 2671f76c75
commit 8911265e65
9 changed files with 127 additions and 23 deletions
+25
View File
@@ -0,0 +1,25 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const routes = [
{
path: '/',
name: 'home',
component: HomeView
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
}
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router