|
|
|
@ -21,27 +21,27 @@ export default defineConfig({
|
|
|
|
|
loading: '@/components/PageLoading/index',
|
|
|
|
|
},
|
|
|
|
|
define: {
|
|
|
|
|
'process.env.API_SERVER': 'http://localhost:8899',
|
|
|
|
|
'process.env.API_SERVER': 'http://47.92.229.12:8888',
|
|
|
|
|
},
|
|
|
|
|
targets: {
|
|
|
|
|
ie: 11,
|
|
|
|
|
},
|
|
|
|
|
// umi routes: https://umijs.org/docs/routing
|
|
|
|
|
routes: [
|
|
|
|
|
// {
|
|
|
|
|
// path: '/user',
|
|
|
|
|
// component: '../layouts/UserLayout',
|
|
|
|
|
// routes: [
|
|
|
|
|
// {
|
|
|
|
|
// name: 'login',
|
|
|
|
|
// path: '/user/login',
|
|
|
|
|
// component: './user/login',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
path: '/user',
|
|
|
|
|
component: '../layouts/UserLayout',
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
name: 'login',
|
|
|
|
|
path: '/user/login',
|
|
|
|
|
component: './user/login',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'page',
|
|
|
|
|
path: '/',
|
|
|
|
|
path: '/front',
|
|
|
|
|
component: './Front',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -49,69 +49,69 @@ export default defineConfig({
|
|
|
|
|
path: '/home/detail/:id?',
|
|
|
|
|
component: './Front/detail',
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: '/',
|
|
|
|
|
// component: '../layouts/SecurityLayout',
|
|
|
|
|
// routes: [
|
|
|
|
|
// {
|
|
|
|
|
// path: '/',
|
|
|
|
|
// component: '../layouts/BasicLayout',
|
|
|
|
|
// authority: ['admin', 'user'],
|
|
|
|
|
// routes: [
|
|
|
|
|
// {
|
|
|
|
|
// path: '/',
|
|
|
|
|
// redirect: '/article/article-page',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// hideInMenu: true,
|
|
|
|
|
// name: 'list.caseUpdate',
|
|
|
|
|
// path: 'article/article-page/update/:id?',
|
|
|
|
|
// component: './Case/CasePage/update',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// name: 'list.case',
|
|
|
|
|
// icon: 'fileSearch',
|
|
|
|
|
// path: 'article',
|
|
|
|
|
// routes: [
|
|
|
|
|
// {
|
|
|
|
|
// name: 'casePage',
|
|
|
|
|
// path: 'article-page',
|
|
|
|
|
// component: './Case/CasePage',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// name: 'level',
|
|
|
|
|
// path: 'level',
|
|
|
|
|
// component: './Case/level',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// name: 'category',
|
|
|
|
|
// path: 'category',
|
|
|
|
|
// component: './Case/Category',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// name: 'list.maintain',
|
|
|
|
|
// icon: 'idcard',
|
|
|
|
|
// path: 'maintain',
|
|
|
|
|
// routes: [
|
|
|
|
|
// {
|
|
|
|
|
// name: 'user',
|
|
|
|
|
// path: 'user',
|
|
|
|
|
// component: './MainTain/User',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// component: './404',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// component: './404',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: '../layouts/SecurityLayout',
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: '../layouts/BasicLayout',
|
|
|
|
|
authority: ['admin', 'user'],
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
redirect: '/article/article-page',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
name: 'list.caseUpdate',
|
|
|
|
|
path: 'article/article-page/update/:id?',
|
|
|
|
|
component: './Case/CasePage/update',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'list.case',
|
|
|
|
|
icon: 'fileSearch',
|
|
|
|
|
path: 'article',
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
name: 'casePage',
|
|
|
|
|
path: 'article-page',
|
|
|
|
|
component: './Case/CasePage',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'level',
|
|
|
|
|
path: 'level',
|
|
|
|
|
component: './Case/level',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'category',
|
|
|
|
|
path: 'category',
|
|
|
|
|
component: './Case/Category',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'list.maintain',
|
|
|
|
|
icon: 'idcard',
|
|
|
|
|
path: 'maintain',
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
name: 'user',
|
|
|
|
|
path: 'user',
|
|
|
|
|
component: './MainTain/User',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: './404',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: './404',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: './404',
|
|
|
|
|
},
|
|
|
|
|