We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c335773 commit b0271e1Copy full SHA for b0271e1
frontend/src/views/system/embedded/iframe.vue
@@ -407,11 +407,13 @@ const handleEmbedded = (row: any) => {
407
script.src = "${origin + pathname}xpack_static/sqlbot-embedded-dynamic.umd.js";
408
document.head.appendChild(script);
409
})()
410
-
411
- sqlbot_embedded_handler.mounted('.copilot', {
412
- "embeddedId": "${row.id}",
413
- "online": true
414
-})`
+ let sqlbot_embedded_timer = setInterval(() => {
+ if (sqlbot_embedded_handler?.mounted) {
+ sqlbot_embedded_handler.mounted('.copilot', { "embeddedId": "${row.id}" })
+ clearInterval(sqlbot_embedded_timer)
+ }
415
+ }, 1000)
416
+ `
417
}
418
const copyJsCode = () => {
419
copy(jsCodeElement.value)
0 commit comments