From 9ce2b7704070c2415a6dd929c961bb918c5c735b Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 26 二月 2025 10:47:05 +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 af0023b..fbd1d2e 100644 --- a/apps/taro/config/index.js +++ b/apps/taro/config/index.js @@ -196,6 +196,14 @@ router: { mode: 'browser', }, + devServer: { + proxy: { + '/api': { + target: 'http://localhost:57190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧� + changeOrigin: true, + }, + }, + }, postcss: { autoprefixer: { enable: true, @@ -215,6 +223,9 @@ }, }, }, + htmlPluginOption: { + favicon: './public/logo-v.png', + }, webpackChain(chain, webpack) { chain.plugin('unplugin-auto-import').use( AutoImport({ -- Gitblit v1.9.1