oyjt / uniapp-vue3-template

使用uniapp+vite+vue3+uview-plus3.0 搭建的搭建的适合团队协作的快速开发模版
http://icnpath.com/uniapp-vue3-template/
MIT License
243 stars 55 forks source link

执行npm run dev:mp-weixin 代理不生效 #5

Closed haoyongliang closed 9 months ago

haoyongliang commented 9 months ago

执行npm run dev:mp-weixin 代理不生效,service的配置如下:,我是为了更直观点这么写的,感觉这个配置是H5的专用的,在浏览器能正常代理到服务器 server: { port: 8080, host: true, open: true, proxy: { '/api': { target: "http://127.0.0.1:8080", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '/jeecg-boot'), }, }, },

haoyongliang commented 9 months ago

已解决