mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: Support configure SQLBot name in chat template
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user