From dcc3e4fca692b416d74c8e431caa5b26cd11fff6 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 09 六月 2025 09:35:04 +0800
Subject: [PATCH] fix: v1.4

---
 apps/taro/config/index.js |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js
index 78c8ec0..83f8f71 100644
--- a/apps/taro/config/index.js
+++ b/apps/taro/config/index.js
@@ -5,6 +5,8 @@
 import ComponentsPlugin from 'unplugin-vue-components/webpack';
 import NutUIResolver from '@nutui/nutui-taro/dist/resolver';
 
+const rootPath = path.resolve(__dirname, '..', '..', '..');
+
 const config = {
   projectName: 'vue-mini',
   date: '2022-11-29',
@@ -24,12 +26,7 @@
   },
   alias: {
     '@': path.resolve(__dirname, '..', 'src'),
-    '@life-payment/components': path.resolve(
-      __dirname,
-      '..',
-      'node_modules',
-      '@life-payment/components'
-    ),
+    '@life-payment/components': path.resolve(rootPath, 'packages', 'components'),
   },
   sourceRoot: 'src',
   outputRoot: `dist/${process.env.TARO_ENV}`,
@@ -205,7 +202,7 @@
     devServer: {
       proxy: {
         '/api': {
-          target: 'http://localhost:57190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧�
+          target: 'http://localhost:58190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧�
           changeOrigin: true,
         },
       },

--
Gitblit v1.9.1