提示词编辑器风格统一和移动端适配

This commit is contained in:
2025-11-12 09:47:35 +08:00
parent 1682b62832
commit bf0a5a0098
2 changed files with 49 additions and 20 deletions
+2 -1
View File
@@ -202,7 +202,8 @@ export const usePromptStore = defineStore('promptStore', {
addTag(groupId: string, key = 'new_tag') {
const grp = this.findGroupById(groupId);
if (!grp) return;
grp.tags.push({ key, translation: { en: key, [this.selectedLang]: key } });
// 新增提示词插入到列表顶部,便于用户立即编辑
grp.tags.unshift({ key, translation: { en: key, [this.selectedLang]: key } });
},
removeTag(groupId: string, key: string) {
const grp = this.findGroupById(groupId);