From dc2b7218ca98f2e1b987803542bc7a451e56cbc8 Mon Sep 17 00:00:00 2001 From: ulleo Date: Fri, 8 May 2026 17:51:25 +0800 Subject: [PATCH] feat: Support configure SQLBot name in chat template --- frontend/src/views/system/parameter/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/parameter/index.vue b/frontend/src/views/system/parameter/index.vue index 49ebc0fa..eac10d67 100644 --- a/frontend/src/views/system/parameter/index.vue +++ b/frontend/src/views/system/parameter/index.vue @@ -22,11 +22,17 @@ const loadData = () => { if (res) { res.forEach((item: any) => { if ( - (item.pkey?.startsWith('chat') && item.pkey !== 'chat.sqlbot_name') || + item.pkey?.startsWith('chat') || item.pkey?.startsWith('login') || item.pkey?.startsWith('platform') ) { - state.parameterForm[item.pkey] = formatArg(item.pval) + if (item.pkey !== 'chat.sqlbot_name') { + if (item.pval && item.pval.trim().length > 0) { + state.parameterForm[item.pkey] = item.pval + } + } else { + state.parameterForm[item.pkey] = formatArg(item.pval) + } } }) console.log(state.parameterForm)