修改路由

This commit is contained in:
A1300399510
2023-07-10 11:55:29 +08:00
parent 4a2e1b624e
commit 977c62fe7c

View File

@@ -15,14 +15,14 @@ const routes = [
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
},
// {
// path: '/edit',
// name: 'edit',
// // 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/edit.vue')
// }
{
path: '/edit',
name: 'edit',
// 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/edit.vue')
}
]
const router = createRouter({