fix Bug or esLink formatting

This commit is contained in:
Ah jung
2021-07-22 13:47:44 +08:00
parent f6be8f521e
commit 7f81152793
172 changed files with 10553 additions and 9031 deletions

View File

@@ -1,53 +1,52 @@
import { MockMethod } from 'vite-plugin-mock'
import { resultSuccess, getRequestToken } from '../_util'
const menusList = [
{
path: '/dashboard',
name: 'Dashboard',
component: 'Layout',
redirect: '/dashboard/console',
meta: {
icon: 'DashboardOutlined',
title: 'Dashboard',
},
children: [
{
path: 'console',
name: 'dashboard_console',
component: 'DashboardConsole',
meta: {
title: '主控台',
}
},
{
path: 'monitor',
name: 'dashboard_monitor',
component: 'DashboardMonitor',
meta: {
title: '监控页',
}
},
{
path: 'workplace',
name: 'dashboard_workplace',
component: 'DashboardWorkplace',
meta: {
hidden: true,
title: '工作台',
}
},
],
}
]
export default [
{
url: '/api/menus',
timeout: 1000,
method: 'get',
response: () => {
return resultSuccess(menusList);
},
}
]
import { resultSuccess } from '../_util';
const menusList = [
{
path: '/dashboard',
name: 'Dashboard',
component: 'Layout',
redirect: '/dashboard/console',
meta: {
icon: 'DashboardOutlined',
title: 'Dashboard',
},
children: [
{
path: 'console',
name: 'dashboard_console',
component: 'DashboardConsole',
meta: {
title: '主控台',
},
},
{
path: 'monitor',
name: 'dashboard_monitor',
component: 'DashboardMonitor',
meta: {
title: '监控页',
},
},
{
path: 'workplace',
name: 'dashboard_workplace',
component: 'DashboardWorkplace',
meta: {
hidden: true,
title: '工作台',
},
},
],
},
];
export default [
{
url: '/api/menus',
timeout: 1000,
method: 'get',
response: () => {
return resultSuccess(menusList);
},
},
];

View File

@@ -1,9 +1,9 @@
import Mock from 'mockjs'
import { resultSuccess, getRequestToken } from '../_util'
import Mock from 'mockjs';
import { resultSuccess } from '../_util';
const Random = Mock.Random
const Random = Mock.Random;
const token = Random.string('upper', 32, 32)
const token = Random.string('upper', 32, 32);
const adminInfo = {
userId: '1',
@@ -33,9 +33,9 @@ const adminInfo = {
{
roleName: '基础列表删除',
value: 'basic_list_delete',
}
},
],
}
};
export default [
{
@@ -56,4 +56,4 @@ export default [
return resultSuccess(adminInfo);
},
},
]
];