项目初始化

This commit is contained in:
xwj
2026-01-26 14:37:40 +08:00
commit 6a23132628
464 changed files with 35252 additions and 0 deletions

25
src/router/index.ts Normal file
View File

@@ -0,0 +1,25 @@
import Vue from 'vue'
import VueRouter, {RouteConfig} from 'vue-router'
const config = require('../../public/config/sys-config.json');
Vue.use(VueRouter)
const routes: Array<RouteConfig> = [
{
path: '/',
redirect: '/index'
},
{
path: '/index',
name: 'Home',
component: () => import('@/views/layout/Layout.vue')
}
]
const router = new VueRouter({
base: config.projectName,
routes
})
export default router