fix(plan/ui): correct screenshot extension and align bot ext_info guard with backend

This commit is contained in:
2026-07-15 14:06:39 +08:00
parent 1378649fc7
commit f108465d4f
2 changed files with 2 additions and 1 deletions

View File

@@ -289,6 +289,7 @@ function resetDrawerForm() {
function parseBotExtInfo(extInfo: string | undefined): string {
if (!extInfo) return ''
if (!extInfo.trim().startsWith('{')) return extInfo
try {
const parsed = JSON.parse(extInfo)
if (parsed && typeof parsed === 'object' && parsed.webhook_url) {