init after I forgot
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HelloWorld from '../components/HelloWorld.vue'
|
||||
import Dashboard from '../views/Dashboard.vue'
|
||||
import SystemNotice from '../views/SystemNotice.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: HelloWorld
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: Dashboard
|
||||
},
|
||||
{
|
||||
path: '/system-notice',
|
||||
name: 'SystemNotice',
|
||||
component: SystemNotice,
|
||||
meta: { hideHeader: true, hideFooter: true }
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user