mirror of
https://github.com/dataease/dataease.git
synced 2026-06-11 07:17:01 +08:00
perf: 禁用桌面版 SQLBot 嵌入
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user