From e7a2459c969846bce3039ee7f8b48c8a898e47a4 Mon Sep 17 00:00:00 2001
From: "deepsource-autofix[bot]"
<62050782+deepsource-autofix[bot]@users.noreply.github.com>
Date: Mon, 6 Nov 2023 01:19:09 +0000
Subject: [PATCH] style: format code with Prettier and StandardJS
This commit fixes the style issues introduced in 357cfc5 according to the output
from Prettier and StandardJS.
Details: None
---
src/pages/crypto/index.jsx | 3 +-
src/pages/layout/proSecNav/index.jsx | 24 +++++------
src/pages/video/index.jsx | 6 +--
src/routers/authRouter.jsx | 6 +--
src/routers/index.jsx | 60 ++++++++++++++--------------
5 files changed, 50 insertions(+), 49 deletions(-)
diff --git a/src/pages/crypto/index.jsx b/src/pages/crypto/index.jsx
index 17a9d925..0a630006 100644
--- a/src/pages/crypto/index.jsx
+++ b/src/pages/crypto/index.jsx
@@ -69,7 +69,8 @@ v4U73TKOI+a1xxr6ZMQ4vzwt
encrypt.setPublicKey(publicKey)
// const reaParameter = CryptoJS.lib.WordArray.random(80 / 4).toString()
- const reaParameter = `基于转换器的大型神经网络可以有数十亿个参数。模型的大小通常由模型大小、参数数量和训练数据规模之间的经验关系决定。`
+ const reaParameter =
+ '基于转换器的大型神经网络可以有数十亿个参数。模型的大小通常由模型大小、参数数量和训练数据规模之间的经验关系决定。'
const reaEncrypt = encrypt.encrypt(reaParameter)
setReaData(reaParameter)
diff --git a/src/pages/layout/proSecNav/index.jsx b/src/pages/layout/proSecNav/index.jsx
index b9e4625b..797b9074 100644
--- a/src/pages/layout/proSecNav/index.jsx
+++ b/src/pages/layout/proSecNav/index.jsx
@@ -9,7 +9,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
- QrcodeOutlined,
+ QrcodeOutlined
} from '@ant-design/icons'
import styles from './index.module.less'
@@ -18,7 +18,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 = () => {
@@ -86,11 +86,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: '构建工具',
@@ -98,26 +98,26 @@ 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 (
<>