mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
27 lines
735 B
JavaScript
27 lines
735 B
JavaScript
/*
|
|
* @Author: lixg lixg@dongwu-inc.com
|
|
* @Date: 2022-11-21 17:28:10
|
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
|
* @LastEditTime: 2022-11-22 12:45:23
|
|
* @FilePath: /fe-stu/src/router/index.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
import routesConfig from './config';
|
|
// console.log('routesConfig', routesConfig)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: '首页',
|
|
redirect: routesConfig[0].path
|
|
},
|
|
...routesConfig
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory("/fe-student"),
|
|
routes
|
|
})
|
|
|
|
export default router |