更新小程序 H5 地址
This commit is contained in:
@@ -43,7 +43,7 @@ const baseConfig: UserConfigExport = {
|
|||||||
compiler: "webpack5",
|
compiler: "webpack5",
|
||||||
defineConstants: {
|
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_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: {
|
alias: {
|
||||||
// Taro 4.2.1 requires React 18. Keep the mini program's renderer on the
|
// Taro 4.2.1 requires React 18. Keep the mini program's renderer on the
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { WebView } from "@tarojs/components";
|
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_CACHE_VERSION = "ui-20260723-tab-seam-v7";
|
||||||
const H5_SRC = `${H5_URL}${H5_URL.includes("?") ? "&" : "?"}v=${H5_CACHE_VERSION}`;
|
const H5_SRC = `${H5_URL}${H5_URL.includes("?") ? "&" : "?"}v=${H5_CACHE_VERSION}`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user