fix: 添加写作范式分析入口按钮

- 在WriterPanel头部添加'写作范式'切换按钮
- 修复无法进入范式分析页面的问题
This commit is contained in:
empty
2026-01-08 10:07:45 +08:00
parent 9fb3600a6a
commit 6c33315eff

View File

@@ -6,6 +6,12 @@
<h1 class="font-bold text-lg text-white flex items-center gap-2">
<span class="text-2xl"></span> AI 写作工坊
</h1>
<button
@click="switchPage('analysis')"
class="text-xs px-2 py-1 rounded bg-slate-700 text-slate-300 hover:bg-slate-600 transition"
>
写作范式
</button>
</div>
<span class="text-xs px-2 py-1 rounded bg-blue-900 text-blue-300 border border-blue-700">Pro版</span>
</header>
@@ -144,6 +150,8 @@ const {
apiKey
} = storeToRefs(appStore)
const { switchPage } = appStore
const presetTags = ['Markdown格式', '总分总结构', '数据支撑', '语气幽默', '严禁被动语态', '引用权威来源']
// 添加参考案例