Commit e0bde60
committed
refactor(ui): 移动并复用 isSkillSelected 函数
- 将 isSkillSelected 函数从 PromptInput.tsx 移动到 SlashCommandMenu.tsx
- 在 PromptInput.tsx 中从 SlashCommandMenu 导入 isSkillSelected
- 简化代码结构,避免函数重复定义
- 统一技能选择判断逻辑以提高代码复用性1 parent b757ea1 commit e0bde60
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments