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

fix(嵌入式): DataEase嵌入第三方系统后,移动端访问第三方系统时,希望展示移动端布局
This commit is contained in:
dataeaseShu 2024-07-17 11:33:08 +08:00 committed by GitHub
commit d8298e85ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,9 @@ onBeforeMount(async () => {
canvasViewInfoPreview,
curPreviewGap
}) {
if (!dvInfo.mobileLayout) {
if (!isPc && !dvInfo.mobileLayout) {
dvMainStore.setMobileInPc(true)
dvMainStore.setInMobile(true)
useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty')
return
}