fix: 修复请求详情抽屉的默认状态问题

- viewMode 默认改为 formatted,避免按钮被禁用
- currentExpandDepth 默认改为 0,与收缩状态一致
This commit is contained in:
fawney19
2026-01-15 19:23:01 +08:00
parent b2731eddf3
commit 80887dd2cc

View File

@@ -557,8 +557,8 @@ const error = ref<string | null>(null)
const detail = ref<RequestDetail | null>(null)
const activeTab = ref('request-body')
const copiedStates = ref<Record<string, boolean>>({})
const viewMode = ref<'compare' | 'formatted' | 'raw'>('compare')
const currentExpandDepth = ref(1)
const viewMode = ref<'compare' | 'formatted' | 'raw'>('formatted')
const currentExpandDepth = ref(0)
const dataSource = ref<'client' | 'provider'>('client')
const contentViewMode = ref<'json' | 'conversation'>('json')
const { copyToClipboard } = useClipboard()