├── php-api/ # 改造后的PHP接口层 ├── java-ad-service/ # 若依框架微服务(广告+VIP+分账) ├── uniapp-reader/ # UniApp前端项目 │ ├── pages/ # 各端页面 │ └──
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vue.config.js 447B

123456789101112131415161718192021
  1. // vue.config.js
  2. module.exports = {
  3. devServer: {
  4. proxy: {
  5. '/java-api': {
  6. target: 'http://localhost:8080',
  7. changeOrigin: true,
  8. pathRewrite: {
  9. '^/java-api': '/java-api' // 保持原始路径
  10. }
  11. },
  12. '/api': {
  13. target: 'http://localhost:8080',
  14. changeOrigin: true,
  15. pathRewrite: {
  16. '^/api': '/api' // 修正路径重写规则
  17. }
  18. }
  19. }
  20. }
  21. }