| | |
| | | import { ref } from 'vue' |
| | | export const confingInfoStore =defineStore('confingInfo',()=>{ |
| | | const confingInfo=ref({ |
| | | isLanFace:false, |
| | | screenTimeout: 150, |
| | | // 启用人脸识别 |
| | | isUseFaceRecogService: true, |
| | | deviceType:"血压计", |
| | | face_database:"Face_jq", |
| | | // 数据准度 |
| | | face_score:0.55, |
| | | //结果展示等待页面读秒 |
| | | timeJg:10000, |
| | | base_api:"", |
| | | // 人脸识别请求间隔 |
| | | face_push:3, |
| | | // 播报定时 |
| | | imgHeight:200, |
| | | // 播报定时间隔 |
| | | BobaoJg:4, |
| | | beginWorkTime:5, |
| | | endWorkTime:22, |
| | | // 默认显示床号 开启就显示干体重 |
| | | gantiziShow:false, |
| | | Is_ce_wen:false, |
| | | portPath:'COM5', |
| | | baudRate:115200, |
| | |
| | | * @param roleText 配置文件设置 |
| | | */ |
| | | function setconfingInfo(info:any){ |
| | | if(info.gantiziShow===undefined){ |
| | | info.gantiziShow=false |
| | | } |
| | | confingInfo.value=info |
| | | // 给默认值 |
| | | if(info.BobaoJg===undefined){ |
| | | confingInfo.value.BobaoJg=4 |
| | | } |
| | | // |
| | | if(info.isLanFace===undefined){ |
| | | confingInfo.value.isLanFace=false |
| | | } |
| | | } |
| | | return {confingInfo,setconfingInfo} |
| | | }) |