From 7c585e4e2d3bd1f6bbc77ac541fe8412ac47ebe5 Mon Sep 17 00:00:00 2001 From: zym2525 <540361168@qq.com> Date: 星期四, 20 二月 2025 21:01:46 +0800 Subject: [PATCH] fix: config --- apps/taro/config/index.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js index 0e17760..fc3248b 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, -- Gitblit v1.9.1