perf: Assistant switch online

This commit is contained in:
fit2cloud-chenyw
2025-07-27 00:56:07 +08:00
parent 5502afcae2
commit 115016c262
6 changed files with 122 additions and 7 deletions
+6
View File
@@ -80,6 +80,9 @@ class HttpService {
encodeURIComponent(assistantStore.getCertificate)
)
}
if (!assistantStore.getType) {
config.headers['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
}
}
const locale = getLocale()
if (locale) {
@@ -261,6 +264,9 @@ class HttpService {
encodeURIComponent(assistantStore.getCertificate)
)
}
if (!assistantStore.getType) {
heads['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
}
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore