fix: 删除无效引用

perf/export-docx
Jimmy Liow 11 months ago
parent eba209ea15
commit 4688c78dbd

@ -1,23 +1,23 @@
import { Outlet, Link, useHref, useNavigate, useLocation, NavLink } from 'react-router-dom';
import { Outlet, Link, useHref, useNavigate, NavLink } from 'react-router-dom';
import { useEffect, useState } from 'react';
import { Layout, Menu, ConfigProvider, theme, Dropdown, Space, Row, Col, Badge, Typography, Modal, Input, Button, App as AntApp } from 'antd';
import { DownOutlined } from '@ant-design/icons';
import 'antd/dist/reset.css';
import AppLogo from '@/assets/logo-gh.png';
import { isEmpty, isNotEmpty } from '@/utils/commons';
import { isEmpty } from '@/utils/commons';
import Language from '../i18n/LanguageSwitcher';
import { useTranslation } from 'react-i18next';
import zhLocale from 'antd/locale/zh_CN';
import enLocale from 'antd/locale/en_US';
import 'dayjs/locale/zh-cn';
import ErrorBoundary from '@/components/ErrorBoundary'
import ErrorBoundary from '@/components/ErrorBoundary';
import { BUILD_VERSION, } from '@/config';
import useNoticeStore from '@/stores/Notice';
import useAuthStore from '@/stores/Auth'
import { useThemeContext } from '@/stores/ThemeContext'
import { usingStorage } from '@/hooks/usingStorage'
import useAuthStore from '@/stores/Auth';
import { useThemeContext } from '@/stores/ThemeContext';
import { usingStorage } from '@/hooks/usingStorage';
import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW, PERM_OVERSEA, PERM_AIR_TICKET, PERM_PRODUCTS_MANAGEMENT, PERM_PRODUCTS_INFO_PUT, } from '@/config'
import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW, PERM_OVERSEA, PERM_AIR_TICKET, PERM_PRODUCTS_MANAGEMENT } from '@/config';
const { Header, Content, Footer } = Layout;
const { Title } = Typography;

@ -1,15 +1,14 @@
import { useNavigate, useLocation } from 'react-router-dom'
import { useNavigate } from 'react-router-dom'
import { useEffect } from 'react'
import { Button, Checkbox, Form, Input, Row, App } from 'antd'
import { Button, Form, Input, Row, App } from 'antd'
import { useTranslation } from 'react-i18next'
import useAuthStore from '@/stores/Auth'
import useNoticeStore from '@/stores/Notice'
function Login() {
const [authenticate, loginStatus, defaultRoute] =
useAuthStore((state) => [state.authenticate, state.loginStatus, state.defaultRoute])
const { t, i18n } = useTranslation()
const { t } = useTranslation()
const { notification } = App.useApp()
const navigate = useNavigate()
const [form] = Form.useForm()

@ -1,7 +1,6 @@
import { useEffect, useState } from 'react'
import { Descriptions, Col, Row } from 'antd';
import { useTranslation } from 'react-i18next'
import useAuthStore from '@/stores/Auth'
import { useTranslation } from 'react-i18next';
import useAuthStore from '@/stores/Auth';
function Profile() {

@ -292,7 +292,6 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
onOk() {
deleteQuotationById(quotationId)
.catch(ex => {
console.info(ex.message)
notification.error({
message: 'Notification',
description: ex.message,

Loading…
Cancel
Save