|
|
@@ -24,13 +24,15 @@ import BasicLayout from '@/components/main';
|
|
|
import statistic from './modules/statistic';
|
|
|
import frameOut from './modules/frameOut';
|
|
|
import division from './modules/division';
|
|
|
+import settings from '@/setting'
|
|
|
+let roterPre = settings.roterPre;
|
|
|
/**
|
|
|
* 在主框架内显示
|
|
|
*/
|
|
|
|
|
|
const frameIn = [
|
|
|
{
|
|
|
- path: '/admin/',
|
|
|
+ path: '/',
|
|
|
meta: {
|
|
|
title: 'CRMEB',
|
|
|
},
|
|
|
@@ -49,7 +51,7 @@ const frameIn = [
|
|
|
// component: () => import('@/pages/system/log')
|
|
|
// },
|
|
|
{
|
|
|
- path: '/admin/system/user',
|
|
|
+ path: roterPre+'/system/user',
|
|
|
name: `systemUser`,
|
|
|
meta: {
|
|
|
auth: true,
|
|
|
@@ -58,7 +60,7 @@ const frameIn = [
|
|
|
component: () => import('@/pages/setting/user/index'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/system/files',
|
|
|
+ path: roterPre+'/system/files',
|
|
|
name: `systemFiles`,
|
|
|
meta: {
|
|
|
auth: ['admin-setting-files'],
|
|
|
@@ -93,7 +95,7 @@ const frameIn = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/widget.images/index.html',
|
|
|
+ path: roterPre+'/widget.images/index.html',
|
|
|
name: `images`,
|
|
|
meta: {
|
|
|
auth: ['admin-user-user-index'],
|
|
|
@@ -102,7 +104,7 @@ const frameIn = [
|
|
|
component: () => import('@/components/uploadPictures/widgetImg'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/widget.widgets/icon.html',
|
|
|
+ path: roterPre+'/widget.widgets/icon.html',
|
|
|
name: `imagesIcon`,
|
|
|
meta: {
|
|
|
auth: ['admin-user-user-index'],
|
|
|
@@ -111,7 +113,7 @@ const frameIn = [
|
|
|
component: () => import('@/components/iconFrom/index'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/store.StoreProduct/index.html',
|
|
|
+ path: roterPre+'/store.StoreProduct/index.html',
|
|
|
name: `storeProduct`,
|
|
|
meta: {
|
|
|
title: '选择商品',
|
|
|
@@ -119,7 +121,7 @@ const frameIn = [
|
|
|
component: () => import('@/components/goodsList/index'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/system.User/list.html',
|
|
|
+ path: roterPre+'/system.User/list.html',
|
|
|
name: `changeUser`,
|
|
|
meta: {
|
|
|
title: '选择用户',
|
|
|
@@ -127,7 +129,7 @@ const frameIn = [
|
|
|
component: () => import('@/components/customerInfo/index'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/widget.video/index.html',
|
|
|
+ path: roterPre+'/widget.video/index.html',
|
|
|
name: `video`,
|
|
|
meta: {
|
|
|
title: '上传视频',
|
|
|
@@ -161,7 +163,7 @@ const frameOuts = frameOut;
|
|
|
|
|
|
const errorPage = [
|
|
|
{
|
|
|
- path: '/admin/403',
|
|
|
+ path: roterPre+'/403',
|
|
|
name: '403',
|
|
|
meta: {
|
|
|
title: '403',
|
|
|
@@ -169,7 +171,7 @@ const errorPage = [
|
|
|
component: () => import('@/pages/system/error/403'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/500',
|
|
|
+ path: roterPre+'/500',
|
|
|
name: '500',
|
|
|
meta: {
|
|
|
title: '500',
|
|
|
@@ -177,7 +179,7 @@ const errorPage = [
|
|
|
component: () => import('@/pages/system/error/500'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/admin/*',
|
|
|
+ path: roterPre+'/*',
|
|
|
name: '404',
|
|
|
meta: {
|
|
|
title: '404',
|