From cf550031fa6e3f27c6ee3597486e03cc29eaf54c Mon Sep 17 00:00:00 2001
From: qiaomu <3520484422@qq.com>
Date: Mon, 6 May 2024 14:34:43 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D?=
=?UTF-8?q?=E5=AD=97=E5=92=8C=E6=A0=87=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 2 +-
src/pages/report/index.tsx | 8 ++++----
src/queries/axios_instance.ts | 2 +-
vite.config.ts | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
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`,