返回 Social Auto Upload
index.js
根目录 / sau_frontend / src / router / index.js
1 import { createRouter, createWebHashHistory } from 'vue-router'
2 import Dashboard from '../views/Dashboard.vue'
3 import AccountManagement from '../views/AccountManagement.vue'
4 import MaterialManagement from '../views/MaterialManagement.vue'
5 import PublishCenter from '../views/PublishCenter.vue'
6 import About from '../views/About.vue'
7
8 const routes = [
9 {
10 path: '/',
11 name: 'Dashboard',
12 component: Dashboard
13 },
14 {
15 path: '/account-management',
16 name: 'AccountManagement',
17 component: AccountManagement
18 },
19 {
20 path: '/material-management',
21 name: 'MaterialManagement',
22 component: MaterialManagement
23 },
24 {
25 path: '/publish-center',
26 name: 'PublishCenter',
27 component: PublishCenter
28 },
29 {
30 path: '/about',
31 name: 'About',
32 component: About
33 }
34 ]
35
36 const router = createRouter({
37 history: createWebHashHistory(),
38 routes
39 })
40
41 export default router
41 lines JAVASCRIPT