perf: 删除无效引用

2.0/email-builder
Jimmy Liow 12 months ago
parent 3a6fc53d19
commit 273c655c88

@ -13,5 +13,5 @@
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore",
"htmlWhitespaceSensitivity": "ignore"
}

@ -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)

@ -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 {

@ -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() {

Loading…
Cancel
Save