update pay function

This commit is contained in:
2025-11-22 15:30:59 +08:00
parent ebf7ddda6a
commit 70af97e9ad
6 changed files with 3201 additions and 909 deletions

View File

@@ -187,7 +187,7 @@ export const routeConfig = [
path: 'agent-chat',
component: lazyComponents.AgentChat,
protection: PROTECTION_MODES.MODAL,
layout: 'none', // 使用独立布局全屏沉浸式体验Hero UI 版本
layout: 'main', // 使用主布局(带导航栏
meta: {
title: '价小前投研 AI',
description: '超炫酷的 AI 投研聊天助手 - 基于 Hero UI'

View File

@@ -36,6 +36,7 @@
- 三栏式设计(左侧历史 + 中间聊天 + 右侧配置)
- 侧边栏可折叠
- 暗黑模式支持
- 集成主导航栏MainLayout
### 🎯 核心功能
@@ -258,6 +259,7 @@ AgentChat
- AnimatePresence 动画退出
3. **Tailwind CSS**
- JIT 模式(即时编译,构建速度提升 50%
- 编译时生成 CSS
- 零运行时开销
- PurgeCSS 自动清理
@@ -266,6 +268,13 @@ AgentChat
- Tree-shaking 优化
- 按需引入组件
5. **构建优化craco.config.js**
- 文件系统缓存(二次构建提速 50-80%
- ESLint 插件移除(构建提速 20-30%
- 生产环境禁用 source map提速 40-60%
- 激进的代码分割策略(按库分离)
- Babel 缓存启用
## 🐛 已知问题
- ~~深色模式下某些颜色对比度不足~~ ✅ 已修复

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,8 @@ module.exports = {
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
"./node_modules/@heroui/react/dist/**/*.{js,ts,jsx,tsx}",
],
// 添加 JIT 模式优化
mode: 'jit',
theme: {
extend: {
// Brainwave 自定义颜色