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
30
31
32
33
34
35
| 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,
| Is_tzc:false,
| // 志荣的[zhiRongT605];台衡的M523[taiHengM523] //[s]eca101]读文件夹
| tzc_type:"seca101",
| tzcPortPath:"COM34",
| tzcBaudRate:120,// zhiRongT605波特率1200;台衡523波特率9600
| seca101Path:"D:/seca101/data/"// 文件获取目录
|
| })
| /**
| * 更新配置文件设置
| * @param roleText 配置文件设置
| */
| function setconfingInfo(info:any){
| confingInfo.value=info
| }
| return {confingInfo,setconfingInfo}
| })
|
|