fix(嵌入式): 嵌入数据大屏在手机显示不出,在嵌入式页面使用F12设备仿真选择手机也无法正常加载页面。 #17685

This commit is contained in:
dataeaseShu
2026-01-15 09:53:15 +08:00
committed by dataeaseShu
parent 17b667b473
commit d741291f83
2 changed files with 3 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ import { useI18n } from '@/hooks/web/useI18n'
import colorFunctions from 'less/lib/less/functions/color.js'
import colorTree from 'less/lib/less/tree/color.js'
import { colorStringToHex } from '@/utils/color'
import { isMobile } from '@/utils/utils'
interface SelectConfig {
selectValue: any
@@ -109,8 +110,7 @@ const placeholderText = computed(() => {
})
const isMobileDataV = computed(() => {
const { inMobile, dvInfo } = dvMainStore
return dvInfo.type === 'dataV' && inMobile
return dvMainStore.dvInfo.type === 'dataV' && isMobile()
})
const VanPopupSelect = defineAsyncComponent(() => import('./VanPopupSelect.vue'))

View File

@@ -97,10 +97,7 @@ onBeforeMount(async () => {
curPreviewGap
}) {
if (!isPc.value) {
if (!dvInfo.mobileLayout) {
useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty')
return
} else {
if (dvInfo.mobileLayout) {
dvMainStore.setMobileInPc(true)
dvMainStore.setInMobile(true)
}