Skip to content

Commit b9d80ae

Browse files
committed
feat: Support configure SQLBot name in chat template
1 parent 4b55dcc commit b9d80ae

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

frontend/src/views/system/parameter/index.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ const loadData = () => {
2222
if (res) {
2323
res.forEach((item: any) => {
2424
if (
25-
(item.pkey?.startsWith('chat') && item.pkey !== 'chat.sqlbot_name') ||
25+
item.pkey?.startsWith('chat') ||
2626
item.pkey?.startsWith('login') ||
2727
item.pkey?.startsWith('platform')
2828
) {
29-
state.parameterForm[item.pkey] = formatArg(item.pval)
29+
if (item.pkey !== 'chat.sqlbot_name') {
30+
if (item.pval && item.pval.trim().length > 0) {
31+
state.parameterForm[item.pkey] = item.pval
32+
}
33+
} else {
34+
state.parameterForm[item.pkey] = formatArg(item.pval)
35+
}
3036
}
3137
})
3238
console.log(state.parameterForm)

0 commit comments

Comments
 (0)