From e06044d2db5e57dade2aec6a2ac398129f61d0f2 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Mon, 01 Jun 2026 19:00:15 +0800
Subject: [PATCH] feat: 增加登录页面,注释测试监控的播放

---
 src/utils/tool.js |   39 +++++++++++++++++++++------------------
 1 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/src/utils/tool.js b/src/utils/tool.js
index 2610f3f..ba4b18a 100644
--- a/src/utils/tool.js
+++ b/src/utils/tool.js
@@ -1,42 +1,45 @@
-/*
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2022-10-17 09:34:19
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2022-10-17 09:45:20
- * @FilePath: \srs-police-affairs\src\utils\tool.js
- * @Description: 
- * 
- * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. 
- */
 function executeFunction (callbackArray, amount) {
     return new Promise(function (resolve, reject) {
         let index = 0
-
         let currentIndex = 1
 
         function execute () {
-
             try {
                 callbackArray[index]()
                 index++
             } catch (e) {
-
                 return new Error(e)
-
             } finally {
-
                 if (currentIndex == callbackArray.length) {
                     resolve
                 }
-
                 execute()
                 currentIndex++
             }
-
         }
-
         execute()
     })
 }
 
+export function deepClone(obj) {
+    if (obj === null || typeof obj !== 'object') {
+        return obj
+    }
+    if (obj instanceof Date) {
+        return new Date(obj.getTime())
+    }
+    if (obj instanceof Array) {
+        return obj.map(item => deepClone(item))
+    }
+    if (typeof obj === 'object') {
+        const clonedObj = {}
+        for (let key in obj) {
+            if (Object.prototype.hasOwnProperty.call(obj, key)) {
+                clonedObj[key] = deepClone(obj[key])
+            }
+        }
+        return clonedObj
+    }
+}
+
 export default executeFunction
\ No newline at end of file

--
Gitblit v1.9.3