From 5e39ead00a462fbb5b9557c64905d4555f8639ad Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 22 Aug 2024 17:04:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(X-Pack):=20=E5=A4=96=E8=A7=82=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=94=AF=E6=8C=81=E9=9A=90=E8=97=8FCopilot=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core-frontend/src/layout/components/Header.vue | 14 +++++++++++--- core/core-frontend/src/store/modules/appearance.ts | 6 ++++++ de-xpack | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/layout/components/Header.vue b/core/core-frontend/src/layout/components/Header.vue index cd386ebd48..85eea39994 100644 --- a/core/core-frontend/src/layout/components/Header.vue +++ b/core/core-frontend/src/layout/components/Header.vue @@ -146,10 +146,18 @@ onMounted(() => {
- + - + { :base-url="aiBaseUrl" >
-
+
diff --git a/core/core-frontend/src/store/modules/appearance.ts b/core/core-frontend/src/store/modules/appearance.ts index 2333f02119..a755618e4a 100644 --- a/core/core-frontend/src/store/modules/appearance.ts +++ b/core/core-frontend/src/store/modules/appearance.ts @@ -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 diff --git a/de-xpack b/de-xpack index f46e65216a..df9b8715f2 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit f46e65216a0c0f76cb37a19d8647620ec1b6c8f1 +Subproject commit df9b8715f2d7896813b9591dc34895f8acff912f