ZaiZai 1 年之前
父節點
當前提交
1e0c2d3070
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      public/version.json
  2. 2 2
      src/App.vue
  3. 2 2
      src/config/index.json

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240926161819"
+  "value": "20240926175358"
 }

+ 2 - 2
src/App.vue

@@ -23,7 +23,7 @@ watch(() => [appStore.getTheme, appStore.getThemeVal, appStore.getColor], ([Them
 
 onMounted(() => {
     // 监听设备连接
-    navigator.usb.addEventListener('connect', ({ device }) => {
+    navigator?.usb?.addEventListener('connect', ({ device }) => {
         console.log('USB 设备已连接:', device)
         if (device.manufacturerName === 'CFIST') {
             appStore.setIsUKey(true)
@@ -31,7 +31,7 @@ onMounted(() => {
     })
 
     // 监听设备断开
-    navigator.usb.addEventListener('disconnect', ({ device }) => {
+    navigator?.usb?.addEventListener('disconnect', ({ device }) => {
         console.log('USB 设备已断开:', device)
         if (device.manufacturerName === 'CFIST') {
             appStore.setIsUKey(false)

+ 2 - 2
src/config/index.json

@@ -1,10 +1,10 @@
 {
     "version": "20230607160059",
     "target1": "http://127.0.0.1:8090",
-    "target2": "http://39.108.216.210:8090",
+    "target": "http://39.108.216.210:8090",
     "target3": "http://192.168.0.125:8090",
     "target4": "http://183.247.216.148:28090",
-    "target": "http://192.168.0.196:8090",
+    "target5": "http://192.168.0.196:8090",
     "socket": "wss://measure.hczcxx.cn/websocket",
     "socket2": "ws://192.168.0.125:9527/websocket",
     "localModel": false,