chenyc
2025-08-07 2191b6011fdab3b76344fc2447b8b6aaa972b6c1
src/stores/StoresConfing.ts
@@ -2,7 +2,10 @@
import { ref } from 'vue'
export const confingInfoStore =defineStore('confingInfo',()=>{
    const confingInfo=ref({
        isLanFace:false,
        clientCode:"",//客户端编号
        isLanFace:false,//内网版
        faceType:"百度",//人脸识别类型  baidu 阿里云
        faceApi:'',
        screenTimeout: 150,
        // 启用人脸识别
        isUseFaceRecogService: true,
@@ -13,6 +16,7 @@
        //结果展示等待页面读秒
        timeJg:10000,
        base_api:"",
        // 人脸识别请求间隔
        face_push:3,
        imgHeight:200,
@@ -27,7 +31,7 @@
        baudRate:115200,
        Is_xyj:true,
        xyj_type:'mbp7000',
        // HBP-9030 波特率115200 ,TM2655 波特率 2400   mbp7000 波特率9600
        // HBP-9030 波特率115200 ,TM2655 波特率 2400   mbp7000 波特率9600   yuyue 波特率115300
        xueyanjiPortPath:"COM35",
        xueyanjiBaudRate:9600,
        Is_tzc:false,
@@ -50,12 +54,15 @@
        confingInfo.value=info
        // 给默认值
        if(info.BobaoJg===undefined){
            confingInfo.value.BobaoJg=4
            confingInfo.value.BobaoJg=10
        }
        // 
        if(info.isLanFace===undefined){
            confingInfo.value.isLanFace=false
        }
        if(info.faceType===undefined){
            confingInfo.value.faceType="阿里云"
        }
    }
    return {confingInfo,setconfingInfo}
})