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({