chenyc
2023-08-05 b9657e5cfdb38579600e745150eb398b67515b65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const confingInfoStore =defineStore('confingInfo',()=>{
    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 配置文件设置 
     */
    function setconfingInfo(info:any){
        confingInfo.value=info
    }
    return {confingInfo,setconfingInfo}
})