Initial commit: 网络验证平台
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import { createRouterGuard } from './guard'
|
||||
import routes from './routes'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: routes as RouteRecordRaw[],
|
||||
scrollBehavior() {
|
||||
return { left: 0, top: 0, behavior: 'smooth' }
|
||||
},
|
||||
})
|
||||
|
||||
createRouterGuard(router)
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user