diff --git a/src/pages/echarts/index.jsx b/src/pages/echarts/index.jsx
index 1bc1e763..23adf621 100644
--- a/src/pages/echarts/index.jsx
+++ b/src/pages/echarts/index.jsx
@@ -7,78 +7,78 @@ const Echarts = () => {
tooltip: {
trigger: 'axis',
axisPointer: {
- type: 'shadow',
- },
+ type: 'shadow'
+ }
},
legend: {
- data: ['Direct', 'Email', 'Union Ads', 'Video Ads', 'Search Engine', 'Baidu', 'Google', 'Bing', 'Others'],
+ data: ['Direct', 'Email', 'Union Ads', 'Video Ads', 'Search Engine', 'Baidu', 'Google', 'Bing', 'Others']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
- containLabel: true,
+ containLabel: true
},
xAxis: [
{
type: 'category',
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
- },
+ data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
+ }
],
yAxis: [
{
- type: 'value',
- },
+ type: 'value'
+ }
],
series: [
{
name: 'Direct',
type: 'bar',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [320, 332, 301, 334, 390, 330, 320],
+ data: [320, 332, 301, 334, 390, 330, 320]
},
{
name: 'Email',
type: 'bar',
stack: 'Ad',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [120, 132, 101, 134, 90, 230, 210],
+ data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: 'Union Ads',
type: 'bar',
stack: 'Ad',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [220, 182, 191, 234, 290, 330, 310],
+ data: [220, 182, 191, 234, 290, 330, 310]
},
{
name: 'Video Ads',
type: 'bar',
stack: 'Ad',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [150, 232, 201, 154, 190, 330, 410],
+ data: [150, 232, 201, 154, 190, 330, 410]
},
{
name: 'Search Engine',
type: 'bar',
data: [862, 1018, 964, 1026, 1679, 1600, 1570],
emphasis: {
- focus: 'series',
+ focus: 'series'
},
markLine: {
lineStyle: {
- type: 'dashed',
+ type: 'dashed'
},
- data: [[{ type: 'min' }, { type: 'max' }]],
- },
+ data: [[{ type: 'min' }, { type: 'max' }]]
+ }
},
{
name: 'Baidu',
@@ -86,38 +86,38 @@ const Echarts = () => {
barWidth: 5,
stack: 'Search Engine',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [620, 732, 701, 734, 1090, 1130, 1120],
+ data: [620, 732, 701, 734, 1090, 1130, 1120]
},
{
name: 'Google',
type: 'bar',
stack: 'Search Engine',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [120, 132, 101, 134, 290, 230, 220],
+ data: [120, 132, 101, 134, 290, 230, 220]
},
{
name: 'Bing',
type: 'bar',
stack: 'Search Engine',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [60, 72, 71, 74, 190, 130, 110],
+ data: [60, 72, 71, 74, 190, 130, 110]
},
{
name: 'Others',
type: 'bar',
stack: 'Search Engine',
emphasis: {
- focus: 'series',
+ focus: 'series'
},
- data: [62, 82, 91, 84, 109, 110, 120],
- },
- ],
+ data: [62, 82, 91, 84, 109, 110, 120]
+ }
+ ]
}
return (
diff --git a/src/pages/layout/proSecNav/index.jsx b/src/pages/layout/proSecNav/index.jsx
index 938163a9..eadb2206 100644
--- a/src/pages/layout/proSecNav/index.jsx
+++ b/src/pages/layout/proSecNav/index.jsx
@@ -10,7 +10,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
- QrcodeOutlined,
+ QrcodeOutlined
} from '@ant-design/icons'
import styles from './index.module.less'
@@ -19,7 +19,7 @@ const pathSubmenu = {
'/home': ['home'],
'/coupons/add': ['/sub-act', '/sub-coupons'],
'/coupons/edit': ['/sub-act', '/sub-coupons'],
- '/product': ['/sub-act', '/sub-coupons'],
+ '/product': ['/sub-act', '/sub-coupons']
}
const ProSecNav = () => {
@@ -45,7 +45,7 @@ const ProSecNav = () => {
useEffect(() => {
const selectedPathKey = pathname
setSelectedKeys([selectedPathKey])
- setOpenKeys(isOpenChange ? openKeys : (pathSubmenu[pathname] ?? openKeys))
+ setOpenKeys(isOpenChange ? openKeys : pathSubmenu[pathname] ?? openKeys)
}, [pathname, openKeys, isOpenChange])
const onOpenChange = (keys) => {
@@ -100,11 +100,11 @@ const ProSecNav = () => {
icon: ,
children: [
{ label: 'Vue', key: '/coupons/add' },
- { label: 'Angular', key: '/coupons/edit' },
- ],
+ { label: 'Angular', key: '/coupons/edit' }
+ ]
},
- { label: '后端技术栈', key: '/product', icon: },
- ],
+ { label: '后端技术栈', key: '/product', icon: }
+ ]
},
{
label: '构建工具',
@@ -112,25 +112,25 @@ const ProSecNav = () => {
icon: ,
children: [
{ label: 'Webpack', key: '/coupons/list' },
- { label: 'Vite', key: '/order/list' },
- ],
+ { label: 'Vite', key: '/order/list' }
+ ]
},
{
label: 'Error',
key: '/sub-error',
icon: ,
- children: [{ label: 'ErrorBoundary', key: '/error' }],
- },
+ children: [{ label: 'ErrorBoundary', key: '/error' }]
+ }
]
return (