feat: 统一 Mock 数据开关配置
创建统一的配置文件 src/config/app.js 管理 Mock 开关 变更内容: - 新增 src/config/app.js 统一配置文件 - 更新 8 个页面使用统一的 USE_MOCK_DATA 配置: - src/pages/material-list/index.vue - src/pages/feedback-list/index.vue - src/pages/message/index.vue - src/pages/week-hot-material/index.vue - src/pages/favorites/index.vue - src/pages/plan/index.vue - src/pages/search/index.vue - src/pages/product-center/index.vue 收益: - 便于开发和测试环境的 Mock 数据切换 - 统一代码风格,提升可维护性 - 符合 DRY 原则 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
9 changed files
with
86 additions
and
20 deletions
src/config/app.js
0 → 100644
-
Please register or login to post a comment