From 03047a382e6f0f1945be32e28fd65e6b31817dfa Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 24 二月 2025 17:52:47 +0800
Subject: [PATCH] fix: 对接

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

diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js
index 0e17760..fbd1d2e 100644
--- a/apps/taro/config/index.js
+++ b/apps/taro/config/index.js
@@ -24,6 +24,12 @@
   },
   alias: {
     '@': path.resolve(__dirname, '..', 'src'),
+    '@life-payment/components': path.resolve(
+      __dirname,
+      '..',
+      'node_modules',
+      '@life-payment/components'
+    ),
   },
   sourceRoot: 'src',
   outputRoot: `dist/${process.env.TARO_ENV}`,
@@ -187,6 +193,17 @@
   h5: {
     publicPath: '/',
     staticDirectory: 'static',
+    router: {
+      mode: 'browser',
+    },
+    devServer: {
+      proxy: {
+        '/api': {
+          target: 'http://localhost:57190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧�
+          changeOrigin: true,
+        },
+      },
+    },
     postcss: {
       autoprefixer: {
         enable: true,
@@ -206,6 +223,9 @@
         },
       },
     },
+    htmlPluginOption: {
+      favicon: './public/logo-v.png',
+    },
     webpackChain(chain, webpack) {
       chain.plugin('unplugin-auto-import').use(
         AutoImport({

--
Gitblit v1.9.1