fix: 添加缺失的 inputType 和 outlinePoints 状态定义

This commit is contained in:
empty
2026-01-08 11:13:24 +08:00
parent 3a2d2c6f0c
commit 0b80285c74

View File

@@ -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,