From c092d3b86a223e279ccf57be27d8f1eb315de089 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 26 二月 2025 17:21:56 +0800
Subject: [PATCH] fix: 对接

---
 apps/taro/config/index.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js
index af0023b..940dfcb 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,10 @@
         },
       },
     },
+    htmlPluginOption: {
+      favicon: './public/logo-v.png',
+    },
+    useHtmlComponents: true,
     webpackChain(chain, webpack) {
       chain.plugin('unplugin-auto-import').use(
         AutoImport({

--
Gitblit v1.9.1