上海市东方医院导视
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
949 B

import { sidebarList } from '@/components/Sidebar/list'
export const state = () => ({
sidebarList,
is4k: is4k(),
shopList: [], //店铺列表
buildingList: [], //楼栋列表
indexList: {},
selectedModule: '', //选择模块
facilityList: [], //设施列表
language: 'zh', //语言 zh: 简体中文 en: 英文 tw: 繁体中文
config: {}, //配置文件
shop: {}, //选中的店铺信息
showSearch: false, //是否显示搜索
showVoice: false, //是否显示语音搜索
showDetail: false, //是否显示详情
currentFloor: {}, //设备所属的当前楼栋的当前楼层信息
isUseFace: 0, //是否使用人脸 0:不使用 1: 使用
isUseSpeech: 1, //是否使用语音 0:不使用 1: 使用
mapData: null
})
export const is4k = () => {
const retinaList = [2160 * 3840, 3840 * 2160]
const width = window.screen.width
const height = window.screen.height
return retinaList.includes(width * height)
}