From 2b3715f1610b4176d7abe33e34542389cef61853 Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期六, 12 四月 2025 17:12:22 +0800
Subject: [PATCH] Merge branch 'main' of http://lanpucloud.cn:1111/r/eims-master

---
 eims-ui-mobile/src/interceptors/prototype.ts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/eims-ui-mobile/src/interceptors/prototype.ts b/eims-ui-mobile/src/interceptors/prototype.ts
new file mode 100644
index 0000000..4e19e02
--- /dev/null
+++ b/eims-ui-mobile/src/interceptors/prototype.ts
@@ -0,0 +1,13 @@
+export const prototypeInterceptor = {
+  install() {
+    // 瑙e喅浣庣増鏈墜鏈轰笉璇嗗埆 array.at() 瀵艰嚧杩愯鎶ラ敊鐨勯棶棰�
+    if (typeof Array.prototype.at !== 'function') {
+      // eslint-disable-next-line no-extend-native
+      Array.prototype.at = function (index: number) {
+        if (index < 0) return this[this.length + index]
+        if (index >= this.length) return undefined
+        return this[index]
+      }
+    }
+  },
+}

--
Gitblit v1.9.3