forked from github/dataease
feat(X-Pack): 外观配置支持隐藏Copilot按钮
This commit is contained in:
parent
3a03d6c06d
commit
5e39ead00a
@ -146,10 +146,18 @@ onMounted(() => {
|
||||
</el-menu>
|
||||
<div class="operate-setting" v-if="!desktop">
|
||||
<XpackComponent jsname="c3dpdGNoZXI=" />
|
||||
<el-icon style="margin: 0 10px" class="ai-icon copilot-icon" v-if="!showOverlayCopilot">
|
||||
<el-icon
|
||||
style="margin: 0 10px"
|
||||
class="ai-icon copilot-icon"
|
||||
v-if="!showOverlayCopilot && appearanceStore.getShowCopilot"
|
||||
>
|
||||
<Icon name="copilot" @click="handleCopilotClick" />
|
||||
</el-icon>
|
||||
<Copilot @confirm="copilotConfirm" v-if="showOverlayCopilot" class="copilot-icon-tips" />
|
||||
<Copilot
|
||||
@confirm="copilotConfirm"
|
||||
v-if="showOverlayCopilot && appearanceStore.getShowCopilot"
|
||||
class="copilot-icon-tips"
|
||||
/>
|
||||
|
||||
<el-icon
|
||||
style="margin: 0 10px"
|
||||
@ -181,7 +189,7 @@ onMounted(() => {
|
||||
:base-url="aiBaseUrl"
|
||||
></ai-component>
|
||||
<div v-if="showOverlay && appearanceStore.getShowAi" class="overlay"></div>
|
||||
<div v-if="showOverlayCopilot" class="overlay"></div>
|
||||
<div v-if="showOverlayCopilot && appearanceStore.getShowCopilot" class="overlay"></div>
|
||||
</div>
|
||||
</el-header>
|
||||
<ExportExcel ref="ExportExcelRef"></ExportExcel>
|
||||
|
@ -16,6 +16,7 @@ interface AppearanceState {
|
||||
mobileLoginBg?: string
|
||||
help?: string
|
||||
showAi?: string
|
||||
showCopilot?: string
|
||||
showDoc?: string
|
||||
showAbout?: string
|
||||
bg?: string
|
||||
@ -43,6 +44,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
||||
help: '',
|
||||
showDoc: '0',
|
||||
showAi: '0',
|
||||
showCopilot: '0',
|
||||
showAbout: '0',
|
||||
bg: '',
|
||||
login: '',
|
||||
@ -133,6 +135,9 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
||||
getShowAi(): boolean {
|
||||
return isBtnShow(this.showAi)
|
||||
},
|
||||
getShowCopilot(): boolean {
|
||||
return isBtnShow(this.showCopilot)
|
||||
},
|
||||
getShowDoc(): boolean {
|
||||
return isBtnShow(this.showDoc)
|
||||
},
|
||||
@ -203,6 +208,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
||||
this.mobileLoginBg = data.mobileLoginBg
|
||||
this.help = data.help
|
||||
this.showAi = data.showAi
|
||||
this.showCopilot = data.showCopilot
|
||||
this.showDoc = data.showDoc
|
||||
this.showAbout = data.showAbout
|
||||
this.navigateBg = data.navigateBg
|
||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit f46e65216a0c0f76cb37a19d8647620ec1b6c8f1
|
||||
Subproject commit df9b8715f2d7896813b9591dc34895f8acff912f
|
Loading…
Reference in New Issue
Block a user