perf: 禁用桌面版 SQLBot 嵌入

This commit is contained in:
fit2cloud-chenyw
2025-10-17 09:02:41 +08:00
parent d18d09aaa8
commit c8b6800a7a
2 changed files with 2 additions and 17 deletions

View File

@@ -15,14 +15,6 @@ import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
import { msgCountApi } from '@/api/msg'
import { computed, ref, onMounted } from 'vue'
import { useEmitt } from '@/hooks/web/useEmitt'
import logo_sqlbot from '@/assets/svg/logo_sqlbot.svg'
defineProps({
sqlbotEnabled: {
type: Boolean,
default: false
}
})
const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed')
const showToolbox = ref(false)
@@ -58,9 +50,7 @@ const initAiBase = async () => {
const handleAiClick = () => {
useEmitt().emitter.emit('aiComponentChange')
}
const handleSQLBotClick = () => {
push('/sqlbot/index')
}
onMounted(() => {
initShowToolbox()
initAiBase()
@@ -72,11 +62,6 @@ onMounted(() => {
<template>
<ToolboxCfg v-if="showToolbox" />
<el-tooltip effect="dark" content="SQLBot" placement="bottom">
<el-icon style="margin: 0 10px" class="ai-icon copilot-icon" v-if="sqlbotEnabled">
<Icon name="copilot"><logo_sqlbot @click="handleSQLBotClick" class="svg-icon" /></Icon>
</el-icon>
</el-tooltip>
<el-tooltip effect="dark" :content="$t('data_export.export_center')" placement="bottom">
<el-icon
style="margin-left: 10px"

View File

@@ -213,7 +213,7 @@ onMounted(() => {
<div v-if="showOverlay && appearanceStore.getShowAi" class="overlay"></div>
</div>
<div v-else class="operate-setting">
<desktop-setting :sqlbot-enabled="sqlbotEnabled" />
<desktop-setting />
</div>
</el-header>
</template>