mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 13:01:44 +08:00
fix(嵌入式): 嵌入数据大屏在手机显示不出,在嵌入式页面使用F12设备仿真选择手机也无法正常加载页面。 #17685
This commit is contained in:
@@ -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'))
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user