perf: 对接 SQLBot 问数记录逻辑错误

This commit is contained in:
fit2cloud-chenyw
2025-09-12 15:16:40 +08:00
committed by fit2cloud-chenyw
parent 188665722f
commit ec9227144d

View File

@@ -9,6 +9,9 @@
<script lang="ts" setup>
import { onMounted, onUnmounted, reactive, ref } from 'vue'
import request from '@/config/axios'
import { useUserStoreWithOut } from '@/store/modules/user'
const userStore = useUserStoreWithOut()
const loading = ref(true)
const state = reactive({
domain: '',
@@ -69,7 +72,8 @@ const mountedEmbeddedPage = () => {
if (window['sqlbot_embedded_handler']) {
window['sqlbot_embedded_handler'].mounted('#dataease-v2-embedded-sqlbot', {
embeddedId: state.id,
online: true
online: true,
userFlag: userStore.getUid
})
loading.value = false
sqlbotExist.value = true