| | |
| | | import { defineStore } from 'pinia' |
| | | import { ref } from 'vue' |
| | | export const confingInfoStore =defineStore('confingInfo',()=>{ |
| | | const confingInfo=ref({}) |
| | | const confingInfo=ref({ |
| | | screenTimeout: 150, |
| | | isUseFaceRecogService: true, |
| | | deviceType:"体重秤", |
| | | face_database:"Face_jq", |
| | | face_score:0.55, |
| | | timeJg:10000, |
| | | base_api:"", |
| | | face_push:3, |
| | | Is_ce_wen:false, |
| | | portPath:'COM5', |
| | | baudRate:115200, |
| | | Is_xyj:false, |
| | | xueyanjiPortPath:"COM35", |
| | | xueyanjiBaudRate:115200 |
| | | |
| | | }) |
| | | /** |
| | | * 更新用户选择角色 |
| | | * @param roleText 角色名称 |
| | | * 更新配置文件设置 |
| | | * @param roleText 配置文件设置 |
| | | */ |
| | | function setconfingInfo(info:any){ |
| | | confingInfo.value=info |