diff --git a/src/contexts/AuthContext.jsx b/src/contexts/AuthContext.jsx index 9924aa0..07073f0 100644 --- a/src/contexts/AuthContext.jsx +++ b/src/contexts/AuthContext.jsx @@ -199,7 +199,7 @@ export const AuthProvider = ({ children }) => { .single(); if (error) throw error; if(data?.attributes?.menuKeys){ - return data.attributes.menuKeys; + return data.attributes.menuKeys; }else{ return []; } diff --git a/src/pages/company/quotation/view/index.jsx b/src/pages/company/quotation/view/index.jsx index 4adfeda..f04d0bb 100644 --- a/src/pages/company/quotation/view/index.jsx +++ b/src/pages/company/quotation/view/index.jsx @@ -7,7 +7,7 @@ import html2canvas from 'html2canvas'; import jsPDF from 'jspdf'; const { Title, Text } = Typography; -import { EXCHANGE_RATE,defaultSymbol } from '@/utils/exchange_rate'; +import { EXCHANGE_RATE, defaultSymbol } from '@/utils/exchange_rate'; const QuotationPreview = () => { const { id } = useParams(); @@ -114,17 +114,6 @@ const QuotationPreview = () => { } }; - // 导出按钮组件 - const ExportPDFButton = () => ( - } - onClick={exportPDF} - > - 导出PDF - - ); - if (loading) { return (
| 项目明细 | 描述/备注 | @@ -194,9 +200,9 @@ const QuotationPreview = () => {小计 |
|---|---|---|
| {item.name} | {item.description} | {item.unit} | @@ -216,9 +222,9 @@ const QuotationPreview = () => { ))} {/* 金额汇总 */} -