From bea81b54cacc82d6e29ef8bfafb861861b600ec5 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 5 Oct 2025 14:52:25 +0800 Subject: [PATCH] chore: 1 --- packages/ui/certd-client/vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui/certd-client/vite.config.ts b/packages/ui/certd-client/vite.config.ts index 6a5e63eb..2253e021 100644 --- a/packages/ui/certd-client/vite.config.ts +++ b/packages/ui/certd-client/vite.config.ts @@ -25,9 +25,9 @@ export default ({ command, mode }) => { // if (mode.startsWith("dev")) { // base = "./"; // } - let proxyTarget = ""; + let proxyTarget: string = "https://127.0.0.1:7002"; if (mode === "remote") { - proxyTarget = "http://yfy.docmirror.cn:7001"; + proxyTarget = "https://yfy.docmirror.cn:7002"; } return { base: base, @@ -93,7 +93,7 @@ export default ({ command, mode }) => { // with options "/api": { //配套后端 https://github.com/fast-crud/fs-server-js - target: proxyTarget ?? "https://127.0.0.1:7002", + target: proxyTarget, //忽略证书 agent: new https.Agent({ rejectUnauthorized: false }), },