mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-26 00:20:26 +08:00
feat: 日志功能和文案优化
This commit is contained in:
@@ -95,7 +95,7 @@ function isActivePreset(presetId: string, chatType: 'group' | 'private'): boolea
|
||||
<div class="flex-1 pr-4">
|
||||
<p class="text-sm font-medium text-gray-900 dark:text-white">发送条数限制</p>
|
||||
<p class="text-xs text-gray-500 dark:text-gray-400">
|
||||
每次发送给 AI 的最大消息条数,用于控制上下文长度(建议在500以上)
|
||||
每次发送给 AI 的最大消息条数,用于控制上下文长度(建议大于500)
|
||||
</p>
|
||||
</div>
|
||||
<UInput v-model.number="globalMaxMessages" type="number" min="1" max="5000" class="w-24" />
|
||||
|
||||
@@ -102,7 +102,7 @@ onMounted(() => {
|
||||
<div>
|
||||
<p class="text-sm font-medium text-gray-900 dark:text-white">匿名使用统计</p>
|
||||
<p class="text-xs text-gray-500 dark:text-gray-400">
|
||||
开启该选项后,软件会收集版本号、操作系统等非敏感数据,用于协助优化产品
|
||||
开启后,软件会收集版本号、操作系统版本等非敏感数据,用于帮助优化产品(●'◡'●)ノ♥
|
||||
</p>
|
||||
</div>
|
||||
<USwitch :model-value="analyticsEnabled" @update:model-value="toggleAnalytics" />
|
||||
|
||||
@@ -19,13 +19,13 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
// 倒计时状态
|
||||
const countdown = ref(10)
|
||||
const countdown = ref(20)
|
||||
let timer: ReturnType<typeof setInterval> | null = null
|
||||
|
||||
// 监听 modal 打开状态,启动倒计时
|
||||
watch(isOpen, (open) => {
|
||||
if (open) {
|
||||
countdown.value = 10
|
||||
countdown.value = 20
|
||||
timer = setInterval(() => {
|
||||
if (countdown.value > 0) {
|
||||
countdown.value--
|
||||
|
||||
Reference in New Issue
Block a user