Skip to content

fix: update mock dev server api handling#912

Open
shiqiWang0 wants to merge 1 commit into
feat_2.x_monaco_editorfrom
fix_2.x_devApiError
Open

fix: update mock dev server api handling#912
shiqiWang0 wants to merge 1 commit into
feat_2.x_monaco_editorfrom
fix_2.x_devApiError

Conversation

@shiqiWang0
Copy link
Copy Markdown
Collaborator

@shiqiWang0 shiqiWang0 commented Jun 2, 2026

Description

修复本地开发环境中 mock API 的匹配与代理配置问题。

image

Changes

  • mockDevServerPlugin 的 mock 文件匹配路径从 app/mock/**/*.mock.* 调整为 mock/**/*.mock.*
  • 为 mock 插件增加 /api 请求前缀匹配
  • 移除 Vite dev server 中空 target/api proxy 配置

How Has This Been Tested?

  • 启动本地开发服务
  • 验证 /api 前缀请求可以被 mock dev server 正常处理

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@shiqiWang0 shiqiWang0 requested a review from kiwiwong June 2, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant