From 1f509d434920a34f6a703b21a9d1262f28c5faab Mon Sep 17 00:00:00 2001 From: inman Date: Fri, 24 Jul 2026 10:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=20H5=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/miniprogram/config/index.ts | 2 +- apps/miniprogram/src/pages/index/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/miniprogram/config/index.ts b/apps/miniprogram/config/index.ts index 5dc96aa..3a3a5ac 100644 --- a/apps/miniprogram/config/index.ts +++ b/apps/miniprogram/config/index.ts @@ -43,7 +43,7 @@ const baseConfig: UserConfigExport = { compiler: "webpack5", defineConstants: { "process.env.TARO_APP_API_BASE_URL": JSON.stringify(process.env.TARO_APP_API_BASE_URL || DEFAULT_API_BASE_URL), - "process.env.TARO_APP_H5_URL": JSON.stringify(process.env.TARO_APP_H5_URL ?? "http://127.0.0.1:5173"), + "process.env.TARO_APP_H5_URL": JSON.stringify(process.env.TARO_APP_H5_URL ?? "https://wanderq.nianxx.com"), }, alias: { // Taro 4.2.1 requires React 18. Keep the mini program's renderer on the diff --git a/apps/miniprogram/src/pages/index/index.tsx b/apps/miniprogram/src/pages/index/index.tsx index 6f68f55..9dbf0f0 100644 --- a/apps/miniprogram/src/pages/index/index.tsx +++ b/apps/miniprogram/src/pages/index/index.tsx @@ -1,6 +1,6 @@ import { WebView } from "@tarojs/components"; -const H5_URL = String(process.env.TARO_APP_H5_URL ?? "http://127.0.0.1:5173"); +const H5_URL = String(process.env.TARO_APP_H5_URL ?? "https://wanderq.nianxx.com"); const H5_CACHE_VERSION = "ui-20260723-tab-seam-v7"; const H5_SRC = `${H5_URL}${H5_URL.includes("?") ? "&" : "?"}v=${H5_CACHE_VERSION}`;