mirror of
https://github.com/dataease/dataease.git
synced 2026-05-19 02:08:10 +08:00
feat(嵌入式): DataEase嵌入第三方系统后,移动端访问第三方系统时,希望展示移动端布局
This commit is contained in:
@@ -75,11 +75,14 @@ onBeforeMount(async () => {
|
||||
canvasViewInfoPreview,
|
||||
curPreviewGap
|
||||
}) {
|
||||
if (!isPc.value && !dvInfo.mobileLayout) {
|
||||
dvMainStore.setMobileInPc(true)
|
||||
dvMainStore.setInMobile(true)
|
||||
useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty')
|
||||
return
|
||||
if (!isPc.value) {
|
||||
if (!dvInfo.mobileLayout) {
|
||||
useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty')
|
||||
return
|
||||
} else {
|
||||
dvMainStore.setMobileInPc(true)
|
||||
dvMainStore.setInMobile(true)
|
||||
}
|
||||
}
|
||||
state.canvasDataPreview = canvasDataResult
|
||||
state.canvasStylePreview = canvasStyleResult
|
||||
|
||||
Reference in New Issue
Block a user