Merge pull request #10581 from dataease/pr@dev-v2_st

fix(嵌入式): div嵌入式时,仪表板或大屏的分享弹窗显示超出边界,且无法通过点击空白处关闭分享弹窗
This commit is contained in:
dataeaseShu 2024-06-28 10:32:48 +08:00 committed by GitHub
commit 6bd2390962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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<App<Element>> => {
const app = createApp(AppElement, { componentName: type })
installDirective(app)
await setupI18n(app)
setupStore(app)
setupRouter(app)

View File

@ -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
}