feat(嵌入式): DataEase嵌入第三方系统后,移动端访问第三方系统时,希望展示移动端布局
This commit is contained in:
parent
45eeac0e4e
commit
9bd5455e05
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user