TalkofFood_Design/shihuashishuo-ui
L.star b11ce5e6fe feat(core): 大版本功能迭代与体验优化
本次更新围绕核心搜索体验和应用功能扩展进行了一系列重要升级。

主要变更:

1.  **路由系统重构与扩展**:
    *   新增多个功能页面路由,包括:
        *   添加饮食页 (/add-food)
        *   搜索历史页 (/history)
        *   客服页 (/customer-service)
        *   分析历史页 (/analysis-history)
    *   将原有的 扫码页 (/scan) 升级为功能更全面的 相机页 (/camera)。
    *   主页 (/home) 组件更新至 2.3,以支持新功能。

2.  **搜索页面 (SearchView) UI/UX 全面升级**:
    *   重新设计了搜索栏,采用更现代的绿色边框风格,提升了视觉吸引力。
    *   实现了历史记录的单条删除功能,并增加了操作确认对话框,提升了用户体验。
    *   优化了搜索逻辑,移除了不必要的延迟,使搜索响应更迅速。

3.  **新增核心组件与工具**:
    *   引入了 EventBus,用于实现组件间的解耦通信,尤其在历史记录删除确认功能中发挥了关键作用。
    *   添加了多个新图标资源,以支持新增的页面和功能。

4.  **代码结构与资源管理**:
    *   删除了过时的 HomeView-首页-2.2.vue 文件。
    *   新增了多个未跟踪的视图组件和 SVG 图标资源,以支持新功能的实现。

此次更新极大地丰富了应用的功能,并显著提升了核心搜索模块的用户体验,为后续的快速迭代奠定了坚实的基础。
2025-07-24 18:44:34 +08:00
..
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00
2025-07-23 11:42:07 +08:00

shihuashishuo-ui

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
npm run test:e2e
# Runs the tests only on Chromium
npm run test:e2e -- --project=chromium
# Runs the tests of a specific file
npm run test:e2e -- tests/example.spec.ts
# Runs the tests in debug mode
npm run test:e2e -- --debug

Lint with ESLint

npm run lint