From aebb07c5cc8b1f233b9d203ff017ac60e6971a85 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 16 May 2025 23:14:43 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E5=B0=8F=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=EF=BC=8C=E4=BB=85=E5=9C=A8=E7=99=BB=E5=BD=95=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/src/App.vue | 13 ++----------- .../ui/certd-client/src/layout/layout-basic.vue | 15 +++++++++++---- .../src/views/framework/login/index.vue | 2 ++ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/ui/certd-client/src/App.vue b/packages/ui/certd-client/src/App.vue index 8887c8bd..7faa70cc 100644 --- a/packages/ui/certd-client/src/App.vue +++ b/packages/ui/certd-client/src/App.vue @@ -3,7 +3,6 @@ - @@ -49,7 +48,7 @@ localeChanged("zh-cn"); provide("fn:router.reload", reload); provide("fn:locale.changed", localeChanged); -const settingsStore = useSettingStore(); + const { isDark } = usePreferences(); const { tokens } = useAntdDesignTokens(); @@ -74,13 +73,5 @@ const tokenTheme = computed(() => { // const settingStore = useSettingStore(); // settingStore.init(); -const chatBox = ref(); -// onMounted(async () => { -// await util.sleep(2000); -// await chatBox.value.openChat({ q: "hello" }); -// }); -const openChat = (q: string) => { - chatBox.value.openChat({ q }); -}; -provide("fn:ai.open", openChat); + diff --git a/packages/ui/certd-client/src/layout/layout-basic.vue b/packages/ui/certd-client/src/layout/layout-basic.vue index 2af00c36..d223fa02 100644 --- a/packages/ui/certd-client/src/layout/layout-basic.vue +++ b/packages/ui/certd-client/src/layout/layout-basic.vue @@ -1,17 +1,16 @@ diff --git a/packages/ui/certd-client/src/views/framework/login/index.vue b/packages/ui/certd-client/src/views/framework/login/index.vue index c31b9a67..6ccc92fa 100644 --- a/packages/ui/certd-client/src/views/framework/login/index.vue +++ b/packages/ui/certd-client/src/views/framework/login/index.vue @@ -43,6 +43,8 @@ + +