diff --git a/src/stores/app.js b/src/stores/app.js index e54e406..05c674e 100644 --- a/src/stores/app.js +++ b/src/stores/app.js @@ -14,6 +14,12 @@ export const useAppStore = defineStore('app', () => { // 写作相关 const inputTask = ref('请帮我写一篇关于"AI 辅助编程如何改变软件开发流程"的博客文章,面向中级程序员。') + const inputType = ref('text') // 'text' 或 'outline' + const outlinePoints = ref({ + topic: '', + audience: '', + keyPoints: '' + }) const references = ref([ { title: '示例:技术博客风格.txt', @@ -226,10 +232,14 @@ export const useAppStore = defineStore('app', () => { apiUrl, apiKey, inputTask, + inputType, + outlinePoints, references, selectedTags, customConstraint, isGenerating, + isDeepMode, + generationStage, generatedContent, analysisText, analysisResult,