From a9564e2a3b12070641855db097fa55de2c207b5c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 28 Jun 2024 10:31:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20div?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=97=B6=EF=BC=8C=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E6=9D=BF=E6=88=96=E5=A4=A7=E5=B1=8F=E7=9A=84=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA=E8=B6=85=E5=87=BA=E8=BE=B9?= =?UTF-8?q?=E7=95=8C=EF=BC=8C=E4=B8=94=E6=97=A0=E6=B3=95=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=A9=BA=E7=99=BD=E5=A4=84=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/main.ts | 2 ++ core/core-frontend/src/views/share/share/ShareVisualHead.vue | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 7023518fbf..8ae917fb6c 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -65,6 +65,7 @@ import { setupStore } from '@/store' import { useEmbedded } from '@/store/modules/embedded' import { setupElementPlus, setupElementPlusIcons } from '@/plugins/element-plus' import { setupRouter } from '@/router/embedded' +import { installDirective } from '@/directive' const setupAll = async ( dom: string, @@ -79,6 +80,7 @@ const setupAll = async ( resourceId: string ): Promise> => { const app = createApp(AppElement, { componentName: type }) + installDirective(app) await setupI18n(app) setupStore(app) setupRouter(app) diff --git a/core/core-frontend/src/views/share/share/ShareVisualHead.vue b/core/core-frontend/src/views/share/share/ShareVisualHead.vue index af28609324..6ad0ddbdd4 100644 --- a/core/core-frontend/src/views/share/share/ShareVisualHead.vue +++ b/core/core-frontend/src/views/share/share/ShareVisualHead.vue @@ -191,7 +191,6 @@ const hideShare = async () => { } } const clickOutPopover = e => { - console.log(e, 'e', popoverVisible.value, e.target.closest('[class*="share-popover"]')) if (!popoverVisible.value || e.target.closest('[class*="share-popover"]')) { return }