fix: 添加缺失的 inputType 和 outlinePoints 状态定义
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user