第一次发布

This commit is contained in:
caolc
2023-04-18 17:02:02 +08:00
commit dfe2ace2c9
927 changed files with 187479 additions and 0 deletions

67
src/router/index.js Normal file
View File

@@ -0,0 +1,67 @@
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Layout from '@/layout'
import CustomerMarket from '../views/distribution/CustomerMarket';
// 不需要数据库维护的路由
export const constantRoutes = [
// {
// path: '/',
// component: Layout,
// redirect: 'dashboard',
// children: [
// {
// path: '/dashboard',
// component: () => import('@/views/dashboard/index'),
// name: 'dashboard',
// meta: { title: '星云台', icon: 'iconkongzhitai', affix: true }
// }
// ]
// },
{ path: '/CustomerMarket', component: CustomerMarket },
{
path: '/profile',
component: Layout,
redirect: '/profile/index',
hidden: true,
children: [
{
path: 'index',
component: () => import('@/views/profile/index'),
name: 'Profile',
meta: { title: '个人中心', icon: 'user', noCache: true }
}
]
},
{
path: '/redirect',
component: Layout,
hidden: true,
children: [
{
path: '/redirect/:path*',
component: () => import('@/views/redirect/index')
}
]
},
{
path: '/login',
component: () => import('@/views/login/index'),
hidden: true
},
{
path: '/distribution',
component: () => import('@/views/distribution/distribution'),
hidden: true
},
{
path: '/404',
component: () => import('@/views/error-page/404'),
hidden: true
}
]
export default new Router({
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})