diff --git a/.prettierrc b/.prettierrc index 15c9faa..ae98c8d 100644 --- a/.prettierrc +++ b/.prettierrc @@ -13,5 +13,5 @@ "requirePragma": false, "insertPragma": false, "proseWrap": "preserve", - "htmlWhitespaceSensitivity": "ignore", + "htmlWhitespaceSensitivity": "ignore" } \ No newline at end of file diff --git a/src/views/DesktopApp.jsx b/src/views/DesktopApp.jsx index 18991fc..0a68282 100644 --- a/src/views/DesktopApp.jsx +++ b/src/views/DesktopApp.jsx @@ -58,7 +58,7 @@ function DesktopApp() { let interval if (totalNotify > 0) { if ('setAppBadge' in navigator) { - navigator.setAppBadge(totalNotify).catch((error) => {}) + navigator.setAppBadge(totalNotify).catch(() => {}) } interval = setInterval(() => { document.title = isTitleVisible @@ -69,7 +69,7 @@ function DesktopApp() { } else { document.title = '销售平台' if ('clearAppBadge' in navigator) { - navigator.clearAppBadge().catch((error) => {}) + navigator.clearAppBadge().catch(() => {}) } } return () => clearInterval(interval) diff --git a/src/views/MobileApp.jsx b/src/views/MobileApp.jsx index b2a74ce..97dc22e 100644 --- a/src/views/MobileApp.jsx +++ b/src/views/MobileApp.jsx @@ -3,7 +3,7 @@ import '@/assets/App.css' import AppLogo from '@/assets/highlights_travel_300_300.png' import { useThemeContext } from '@/stores/ThemeContext' import useAuthStore from '@/stores/AuthStore' -import { Layout, Typography, theme, Space, Avatar, Dropdown, Flex } from 'antd' +import { Layout, theme, Space, Avatar, Dropdown, Flex } from 'antd' import { DownOutlined } from '@ant-design/icons' import { NavLink, Outlet, Link } from 'react-router-dom' import ReloadPrompt from './ReloadPrompt' @@ -11,11 +11,10 @@ import ClearCache from './ClearCache' import { BUILD_VERSION } from '@/config' -const { Header, Footer, Content } = Layout -const { Title } = Typography +const { Header, Content } = Layout function MobileApp() { - const { colorPrimary, borderRadius } = useThemeContext() + const { colorPrimary } = useThemeContext() const loginUser = useAuthStore((state) => state.loginUser) const { diff --git a/src/views/accounts/Profile.jsx b/src/views/accounts/Profile.jsx index 9b337ef..58885c5 100644 --- a/src/views/accounts/Profile.jsx +++ b/src/views/accounts/Profile.jsx @@ -13,7 +13,7 @@ import { Image, Select, } from 'antd' -import { UserOutlined, SmileOutlined } from '@ant-design/icons' +import { UserOutlined } from '@ant-design/icons' import useAuthStore from '@/stores/AuthStore' function Profile() {