Forráskód Böngészése

Merge branch 'dev' of http://git.trops-global.com/linxuxiang/tropsCode into dev

林旭祥 4 hete
szülő
commit
b6e4ca3a3a

+ 209 - 7
package-lock.json

@@ -27,7 +27,8 @@
         "vconsole": "^3.15.1",
         "vue": "^3.4.21",
         "vue-lazyload": "^3.0.0",
-        "vue-router": "^4.0.13"
+        "vue-router": "^4.0.13",
+        "worker-timers": "^8.0.24"
       },
       "devDependencies": {
         "@iconify/json": "^2.2.40",
@@ -88,9 +89,9 @@
       }
     },
     "node_modules/@babel/runtime": {
-      "version": "7.27.6",
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz",
-      "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==",
+      "version": "7.28.4",
+      "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.28.4.tgz",
+      "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==",
       "engines": {
         "node": ">=6.9.0"
       }
@@ -1826,6 +1827,22 @@
         "node": ">=8"
       }
     },
+    "node_modules/broker-factory": {
+      "version": "3.1.9",
+      "resolved": "https://registry.npmmirror.com/broker-factory/-/broker-factory-3.1.9.tgz",
+      "integrity": "sha512-MzvndyD6EcbkBtX4NXm/HfdO1+cOR5ONNdMCXEKfHpxGdMtuDz7+o+nJf7HMtyPH1sUVf/lEIP+DMluC5PgaBQ==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1",
+        "worker-factory": "^7.0.45"
+      }
+    },
+    "node_modules/broker-factory/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
     "node_modules/browserslist": {
       "version": "4.23.0",
       "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.23.0.tgz",
@@ -3335,6 +3352,23 @@
       "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
       "dev": true
     },
+    "node_modules/fast-unique-numbers": {
+      "version": "9.0.23",
+      "resolved": "https://registry.npmmirror.com/fast-unique-numbers/-/fast-unique-numbers-9.0.23.tgz",
+      "integrity": "sha512-jcRIaHo46nfvyvKRMaFSKXmez4jALQ3Qw49gxM5F4siz8HqkyKPPEexpCOYwBSJI1HovrDr4fEedM8QAJ7oX3w==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1"
+      },
+      "engines": {
+        "node": ">=18.2.0"
+      }
+    },
+    "node_modules/fast-unique-numbers/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
     "node_modules/fastq": {
       "version": "1.17.1",
       "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz",
@@ -7799,6 +7833,69 @@
         "node": ">=0.10.0"
       }
     },
+    "node_modules/worker-factory": {
+      "version": "7.0.45",
+      "resolved": "https://registry.npmmirror.com/worker-factory/-/worker-factory-7.0.45.tgz",
+      "integrity": "sha512-FFPCiSv7MD6ZDEfiik/ErM8IrIAWajaXhezLyCo3v0FjhUWud6GXnG2BiTE91jLywXGAVCT8IF48Hhr+D/omMw==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1"
+      }
+    },
+    "node_modules/worker-factory/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
+    "node_modules/worker-timers": {
+      "version": "8.0.24",
+      "resolved": "https://registry.npmmirror.com/worker-timers/-/worker-timers-8.0.24.tgz",
+      "integrity": "sha512-Ydu/7TRHlxIRjYSGDge1F92L7y9kzInpwR4CkocRVObPE0eRqC6d+0GFh52Hm+m520RHVKiytOERtCUu5sQDVQ==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1",
+        "worker-timers-broker": "^8.0.10",
+        "worker-timers-worker": "^9.0.10"
+      }
+    },
+    "node_modules/worker-timers-broker": {
+      "version": "8.0.10",
+      "resolved": "https://registry.npmmirror.com/worker-timers-broker/-/worker-timers-broker-8.0.10.tgz",
+      "integrity": "sha512-xvo/9GiuduENbJNdWnvZtkriIkjBKKVbMyw7GXvrBu3n1JHemzZgxqaCcCBNlpfXnRXXF4ekqvXWLh1gb65b8w==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "broker-factory": "^3.1.9",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1",
+        "worker-timers-worker": "^9.0.10"
+      }
+    },
+    "node_modules/worker-timers-broker/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
+    "node_modules/worker-timers-worker": {
+      "version": "9.0.10",
+      "resolved": "https://registry.npmmirror.com/worker-timers-worker/-/worker-timers-worker-9.0.10.tgz",
+      "integrity": "sha512-cfCmAkuoN+nGGJShta/g7CQVP3h7rvQA642EQg72fOHCWP5S2P83rLxDiaGv811Hd+19Cgdqt/tpRBIZ5kj/dw==",
+      "dependencies": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1",
+        "worker-factory": "^7.0.45"
+      }
+    },
+    "node_modules/worker-timers-worker/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
+    "node_modules/worker-timers/node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+    },
     "node_modules/wrap-ansi": {
       "version": "6.2.0",
       "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
@@ -7989,9 +8086,9 @@
       "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw=="
     },
     "@babel/runtime": {
-      "version": "7.27.6",
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz",
-      "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q=="
+      "version": "7.28.4",
+      "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.28.4.tgz",
+      "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ=="
     },
     "@ctrl/tinycolor": {
       "version": "3.6.1",
@@ -9107,6 +9204,24 @@
         "fill-range": "^7.1.1"
       }
     },
+    "broker-factory": {
+      "version": "3.1.9",
+      "resolved": "https://registry.npmmirror.com/broker-factory/-/broker-factory-3.1.9.tgz",
+      "integrity": "sha512-MzvndyD6EcbkBtX4NXm/HfdO1+cOR5ONNdMCXEKfHpxGdMtuDz7+o+nJf7HMtyPH1sUVf/lEIP+DMluC5PgaBQ==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1",
+        "worker-factory": "^7.0.45"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
     "browserslist": {
       "version": "4.23.0",
       "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.23.0.tgz",
@@ -10246,6 +10361,22 @@
       "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
       "dev": true
     },
+    "fast-unique-numbers": {
+      "version": "9.0.23",
+      "resolved": "https://registry.npmmirror.com/fast-unique-numbers/-/fast-unique-numbers-9.0.23.tgz",
+      "integrity": "sha512-jcRIaHo46nfvyvKRMaFSKXmez4jALQ3Qw49gxM5F4siz8HqkyKPPEexpCOYwBSJI1HovrDr4fEedM8QAJ7oX3w==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
     "fastq": {
       "version": "1.17.1",
       "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz",
@@ -13492,6 +13623,77 @@
       "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
       "dev": true
     },
+    "worker-factory": {
+      "version": "7.0.45",
+      "resolved": "https://registry.npmmirror.com/worker-factory/-/worker-factory-7.0.45.tgz",
+      "integrity": "sha512-FFPCiSv7MD6ZDEfiik/ErM8IrIAWajaXhezLyCo3v0FjhUWud6GXnG2BiTE91jLywXGAVCT8IF48Hhr+D/omMw==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
+    "worker-timers": {
+      "version": "8.0.24",
+      "resolved": "https://registry.npmmirror.com/worker-timers/-/worker-timers-8.0.24.tgz",
+      "integrity": "sha512-Ydu/7TRHlxIRjYSGDge1F92L7y9kzInpwR4CkocRVObPE0eRqC6d+0GFh52Hm+m520RHVKiytOERtCUu5sQDVQ==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1",
+        "worker-timers-broker": "^8.0.10",
+        "worker-timers-worker": "^9.0.10"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
+    "worker-timers-broker": {
+      "version": "8.0.10",
+      "resolved": "https://registry.npmmirror.com/worker-timers-broker/-/worker-timers-broker-8.0.10.tgz",
+      "integrity": "sha512-xvo/9GiuduENbJNdWnvZtkriIkjBKKVbMyw7GXvrBu3n1JHemzZgxqaCcCBNlpfXnRXXF4ekqvXWLh1gb65b8w==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "broker-factory": "^3.1.9",
+        "fast-unique-numbers": "^9.0.23",
+        "tslib": "^2.8.1",
+        "worker-timers-worker": "^9.0.10"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
+    "worker-timers-worker": {
+      "version": "9.0.10",
+      "resolved": "https://registry.npmmirror.com/worker-timers-worker/-/worker-timers-worker-9.0.10.tgz",
+      "integrity": "sha512-cfCmAkuoN+nGGJShta/g7CQVP3h7rvQA642EQg72fOHCWP5S2P83rLxDiaGv811Hd+19Cgdqt/tpRBIZ5kj/dw==",
+      "requires": {
+        "@babel/runtime": "^7.28.3",
+        "tslib": "^2.8.1",
+        "worker-factory": "^7.0.45"
+      },
+      "dependencies": {
+        "tslib": {
+          "version": "2.8.1",
+          "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
+          "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
+        }
+      }
+    },
     "wrap-ansi": {
       "version": "6.2.0",
       "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",

+ 2 - 1
package.json

@@ -31,7 +31,8 @@
     "vconsole": "^3.15.1",
     "vue": "^3.4.21",
     "vue-lazyload": "^3.0.0",
-    "vue-router": "^4.0.13"
+    "vue-router": "^4.0.13",
+    "worker-timers": "^8.0.24"
   },
   "devDependencies": {
     "@iconify/json": "^2.2.40",

+ 1 - 0
src/components/ActionConfirmWindow/index.vue

@@ -86,6 +86,7 @@
 
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import useAppStore from '@/store/modules/app';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;

+ 1 - 0
src/components/Header/index.vue

@@ -31,6 +31,7 @@
   </div>
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import useAppStore from '@/store/modules/app';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import dataDictionary from '@/utils/dataDictionary';

+ 1 - 0
src/components/MultipleItem/index.vue

@@ -34,6 +34,7 @@
 </template>
 
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dataDictionary from "@/utils/dataDictionary"
 // const { initWs, examEnds, openOneTest, startFace, stopFace, faceConfirmOnly, startOneTest, finishOneTest, closeOneTest, suspendFaceRecognitionChannels, resumeFaceRecognitionChannels } = useWs();
 const route = useRoute();

+ 2 - 1
src/components/MultipleItemAllRanking/index.vue

@@ -96,9 +96,10 @@
 
 </template>
 <script setup lang="ts">
-const route = useRoute();
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dataDictionary from "@/utils/dataDictionary"
 const { proxy } = getCurrentInstance() as any;
+const route = useRoute();
 let project: any = route.query.project;
 
 //父值

+ 1 - 0
src/components/OnlineFaceWindow/index.vue

@@ -23,6 +23,7 @@
 
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import { useWebSocket } from '@/utils/faceWs';
 const { proxy } = getCurrentInstance() as any;

+ 1 - 0
src/components/ReportList/index.vue

@@ -39,6 +39,7 @@
   <ReportWindow ref="reportWindowRef" />
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import QRCode from "qrcode";
 import dataDictionary from "@/utils/dataDictionary"
 const dic: any = dataDictionary;

+ 1 - 0
src/components/SquareGame/index.vue

@@ -13,6 +13,7 @@
 
 <script setup lang="ts">
 import { ref, onMounted, onBeforeUnmount } from 'vue';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 const changeTimeArrays: any = ["10", "9", "8", "7", "6", "5", "4", "3", "2", "1", "color change!"];
 const squareColor: any = ["#FF6688", "#00FF00", "#3399FF", "#FFDAB9", "blueviolet"];
 

+ 1 - 0
src/components/WorkstationWindow/index.vue

@@ -61,6 +61,7 @@
 
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dataDictionary from "@/utils/dataDictionary"
 const { proxy } = getCurrentInstance() as any;
 const emit = defineEmits(['returnData']);

+ 1 - 0
src/layout/index.vue

@@ -11,6 +11,7 @@
 
 <script setup name="AppMain" lang="ts">
 import VConsole from 'vconsole';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const rankingWindowRef = ref();

+ 0 - 6
src/types/components.d.ts

@@ -9,17 +9,11 @@ declare module 'vue' {
   export interface GlobalComponents {
     ActionConfirmWindow: typeof import('./../components/ActionConfirmWindow/index.vue')['default']
     ChooseStudent: typeof import('./../components/ChooseStudent/index.vue')['default']
-    copy: typeof import('./../components/MultipleItemRanking copy/index.vue')['default']
-    ElAvatar: typeof import('element-plus/es')['ElAvatar']
-    ElButton: typeof import('element-plus/es')['ElButton']
     ElIcon: typeof import('element-plus/es')['ElIcon']
     ElInput: typeof import('element-plus/es')['ElInput']
     ElOption: typeof import('element-plus/es')['ElOption']
-    ElPagination: typeof import('element-plus/es')['ElPagination']
     ElSelect: typeof import('element-plus/es')['ElSelect']
     ElSwitch: typeof import('element-plus/es')['ElSwitch']
-    ElTable: typeof import('element-plus/es')['ElTable']
-    ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
     FaceWindow: typeof import('./../components/FaceWindow/index.vue')['default']
     Header: typeof import('./../components/Header/index.vue')['default']
     JumpRopeGame: typeof import('./../components/JumpRopeGame/index.vue')['default']

+ 1 - 0
src/utils/trainWs.ts

@@ -1,6 +1,7 @@
 import io from 'socket.io-client';
 import PubSub from 'pubsub-js';
 import { ref, onMounted, onUnmounted, onBeforeUnmount } from 'vue';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 
 export function useWs() {
   const address: any = import.meta.env.VITE_APP_BASE_API;

+ 1 - 0
src/views/analysis/index.vue

@@ -48,6 +48,7 @@
   </div>
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dataDictionary from '@/utils/dataDictionary';
 import useAppStore from '@/store/modules/app';
 const router = useRouter();

+ 1 - 0
src/views/game/components/basketball.vue

@@ -9,6 +9,7 @@
 
 <script setup name="Basketball" lang="ts">
 import { onMounted, ref, reactive, onBeforeUnmount } from 'vue';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const emit = defineEmits(['confirmExit']);

+ 1 - 0
src/views/game/components/football.vue

@@ -20,6 +20,7 @@
 </template>
 
 <script setup name="Football" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import Phaser from 'phaser';
 import { onMounted, ref, reactive, onBeforeUnmount, watch } from 'vue';
 const { proxy } = getCurrentInstance() as any;

+ 1 - 0
src/views/game/components/fruit.vue

@@ -9,6 +9,7 @@
 <script setup name="Fruit" lang="ts">
 import { onMounted, ref } from 'vue';
 import Phaser from 'phaser';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const emit = defineEmits(['confirmExit']);

+ 1 - 0
src/views/game/components/square.vue

@@ -131,6 +131,7 @@
 
 <script setup name="Square" lang="ts">
 import useAppStore from '@/store/modules/app';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { useWs } from '@/utils/trainWs';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import { useWebSocket } from '@/utils/handWs';

+ 1 - 0
src/views/game/index.vue

@@ -86,6 +86,7 @@
 
 <script setup name="GameIndex" lang="ts">
 import useAppStore from '@/store/modules/app';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Grid } from 'swiper/modules';

+ 1 - 0
src/views/gesture/index.vue

@@ -28,6 +28,7 @@
 import { useWebSocket } from '@/utils/handWs';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Navigation } from 'swiper/modules';
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import QRCode from 'qrcode';
 import 'swiper/css';
 import 'swiper/scss/navigation';

+ 1 - 0
src/views/ranking/index.vue

@@ -179,6 +179,7 @@
 </template>
 
 <script setup name="Ranking" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Navigation } from 'swiper/modules';
 import dataDictionary from "@/utils/dataDictionary"

+ 1 - 0
src/views/score/index.vue

@@ -41,6 +41,7 @@
   </div>
 </template>
 <script setup lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dayjs from 'dayjs';
 import dataDictionary from '@/utils/dataDictionary';
 const reportScrollRef = ref();

+ 1 - 1
src/views/set/config.vue

@@ -240,7 +240,7 @@ $waiPadding: 6.51rem;
   position: fixed;
   bottom: 3vh;
   display: flex;
-  justify-content: end;
+  justify-content: flex-end;
 
   .btn {
     width: 11vw;

+ 1 - 0
src/views/set/deploy.vue

@@ -1067,6 +1067,7 @@
 </template>
 
 <script>
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import dataDictionary from '@/utils/dataDictionary';
 import axios from 'axios';
 export default {

+ 1 - 0
src/views/sunshineRun/index.vue

@@ -82,6 +82,7 @@
 </template>
 
 <script setup name="SunshineRun" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { useSunshineRunSocket } from '@/utils/sunshineRunWs';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();

+ 1 - 0
src/views/test/index.vue

@@ -35,6 +35,7 @@
 </template>
 
 <script setup name="TestIndex" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Grid } from 'swiper/modules';
 import { Search } from '@element-plus/icons-vue'

+ 2 - 1
src/views/train/device.vue

@@ -115,6 +115,7 @@
 </template>
 
 <script setup name="TrainTest" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import useAppStore from '@/store/modules/app';
 import { useWs } from '@/utils/trainWs';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
@@ -972,7 +973,7 @@ $waiPadding: 6.51rem;
   position: fixed;
   bottom: 3vh;
   display: flex;
-  justify-content: end;
+  justify-content: flex-end;
 
   .btn {
     width: 13vw;

+ 1 - 0
src/views/train/index.vue

@@ -30,6 +30,7 @@
 </template>
 
 <script setup name="TrainIndex" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Grid } from 'swiper/modules';

+ 2 - 1
src/views/train/multiple.vue

@@ -83,6 +83,7 @@
 </template>
 
 <script setup name="Multiple" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import useAppStore from '@/store/modules/app';
 import { useWs } from '@/utils/trainWs';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
@@ -1111,7 +1112,7 @@ $waiPadding: 6.51rem;
   position: fixed;
   bottom: 3vh;
   display: flex;
-  justify-content: end;
+  justify-content: flex-end;
 
   .btn {
     width: 13vw;

+ 2 - 1
src/views/train/run.vue

@@ -124,6 +124,7 @@
 </template>
 
 <script setup name="TrainTest" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import { useWs } from '@/utils/trainWs';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import dayjs from 'dayjs';
@@ -1198,7 +1199,7 @@ $waiPadding: 6.51rem;
   position: fixed;
   bottom: 3vh;
   display: flex;
-  justify-content: end;
+  justify-content: flex-end;
 
   .btn {
     width: 13vw;

+ 1 - 0
src/views/train/test.vue

@@ -127,6 +127,7 @@
 </template>
 
 <script setup name="TrainTest" lang="ts">
+import { clearInterval, clearTimeout, setInterval, setTimeout } from 'worker-timers';
 import useAppStore from '@/store/modules/app';
 import { useWs } from '@/utils/trainWs';
 import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';