diff --git a/index.html b/index.html index 9383028..afe1136 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - 用电管理服务系统 + 账单查询 diff --git a/src/pages/report/index.tsx b/src/pages/report/index.tsx index 6063ce8..33fb3d5 100644 --- a/src/pages/report/index.tsx +++ b/src/pages/report/index.tsx @@ -42,7 +42,7 @@ export const UserReport: FC = () => { const handlePrint = async () => { const opt = { margin: 0, - filename: `${data?.tenement?.fullName || '报表'}.pdf`, + filename: `${data?.comprehensive?.startDate ? dayjs(data?.comprehensive?.startDate).format("YYYY年MM月") : null}${data?.tenement?.fullName || '报表'}.pdf`, image: { type: "jpeg", quality: 0.98, }, enableLinks: true, html2canvas: { scale: 3, useCORS: true, allowTaint: false, }, @@ -106,11 +106,11 @@ export const UserReport: FC = () => { ` } -
-
+
+ -
+
diff --git a/src/queries/axios_instance.ts b/src/queries/axios_instance.ts index b8e1da7..8a3d82e 100644 --- a/src/queries/axios_instance.ts +++ b/src/queries/axios_instance.ts @@ -8,7 +8,7 @@ import { isNil } from 'ramda'; import { MaybeMapFactory } from '@/shared/foundation'; let engineCache: AxiosInstance | null = null; -export const baseUrl = '/api' +export const baseUrl = '/wxApi' /** * 应用中所需要使用的AJAX引擎。 * @param forceUnauthorized 是否强制丢弃用户会话令牌信息。 diff --git a/vite.config.ts b/vite.config.ts index bb35cc5..f1f67f3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -109,11 +109,11 @@ export default mode => { server: { port: 3000, proxy: { - '/api': { + '/wxApi': { target: `${proxyHost.Host}`, changeOrigin: true, secure: false, - rewrite: path => path.replace(/^\/api/, proxyHost.Path) + rewrite: path => path.replace(/^\/wxApi/, proxyHost.Path) }, '/test': { target: `http://127.0.0.1:8081`,