Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Prettier and StandardJS #404

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/pages/layout/proSecNav/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
QrcodeOutlined,
QrcodeOutlined
} from '@ant-design/icons'

import styles from './index.module.less'
Expand All @@ -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 = () => {
Expand Down Expand Up @@ -94,37 +94,37 @@ const ProSecNav = () => {
icon: <FireOutlined />,
children: [
{ label: 'Vue', key: '/coupons/add' },
{ label: 'Angular', key: '/coupons/edit' },
],
{ label: 'Angular', key: '/coupons/edit' }
]
},
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> },
],
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> }
]
},
{
label: '构建工具',
key: '/sub-list',
icon: <ApartmentOutlined />,
children: [
{ label: 'Webpack', key: '/coupons/list' },
{ label: 'Vite', key: '/order/list' },
],
{ label: 'Vite', key: '/order/list' }
]
},
{
label: 'Error',
key: '/sub-error',
icon: <QuestionCircleOutlined />,
children: [{ label: 'ErrorBoundary', key: '/error' }],
},
children: [{ label: 'ErrorBoundary', key: '/error' }]
}
]

return (
<Menu
mode="inline"
mode='inline'
defaultSelectedKeys={selectedKeys}
defaultOpenKeys={openKeys}
selectedKeys={selectedKeys}
openKeys={openKeys}
theme="light"
theme='light'
className={styles.menu}
onOpenChange={onOpenChange}
onSelect={onSelect}
Expand Down
20 changes: 10 additions & 10 deletions src/pages/superMap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ const SuperMap = () => {
const iconList = [
{
locationX: 121.44,
locationY: 31.25,
locationY: 31.25
},
{
locationX: 121.54,
locationY: 31.14,
locationY: 31.14
},
{
locationX: 121.473919,
locationY: 30.955082,
locationY: 30.955082
},
{
locationX: 121.447153,
locationY: 30.800443,
},
locationY: 30.800443
}
]

useEffect(() => {
Expand All @@ -51,7 +51,7 @@ const SuperMap = () => {
minZoom: 3,
zoom: 3,
attributionControl: false,
zoomControl: true,
zoomControl: true
})
const layer = new TiledMapLayer(url)
layer.addTo(map)
Expand All @@ -71,7 +71,7 @@ const SuperMap = () => {
const markerCluster = L.markerClusterGroup({
spiderfyOnMaxZoom: true,
showCoverageOnHover: false,
zoomToBoundsOnClick: true,
zoomToBoundsOnClick: true
})

markerClusterRef.current = markerCluster
Expand All @@ -84,11 +84,11 @@ const SuperMap = () => {

const myIcon = L.icon({
iconUrl,
iconSize: [20, 24],
iconSize: [20, 24]
})

const marker = L.marker([lat, lon], {
icon: myIcon,
icon: myIcon
})

markerCluster.addLayer(marker)
Expand All @@ -99,7 +99,7 @@ const SuperMap = () => {

return (
<section className={styles.homeBox}>
<div id="superMap" className={styles.superMap} ref={superMapRef}></div>
<div id='superMap' className={styles.superMap} ref={superMapRef} />
</section>
)
}
Expand Down
Loading
Loading