From a50b90b16851b0ad2d9be9a12f28349e3bea4871 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 24 二月 2025 13:41:22 +0800 Subject: [PATCH] fix: 对接 --- apps/taro/config/index.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js index f29f8a6..fc3248b 100644 --- a/apps/taro/config/index.js +++ b/apps/taro/config/index.js @@ -193,6 +193,17 @@ h5: { publicPath: '/', staticDirectory: 'static', + router: { + mode: 'browser', + }, + devServer: { + proxy: { + '/api': { + target: 'http://localhost:57190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧� + changeOrigin: true, + }, + }, + }, postcss: { autoprefixer: { enable: true, -- Gitblit v1.9.1