feat: 1.升级vue版本,2.修正tabs在剩余2个时动画不正确的问题

This commit is contained in:
539943419 committed 2024-09-03 09:27:51 +08:00
1 parent d16f11c263
commit b2c5c7cc6d
4 files changed
+101 -76

No files matched your search

+7 -7
View File
@@ -1,4 +1,4 @@
const idList: number[] = [];
const idList: number[] = []
/**
* 生成一个唯一的id
@@ -6,11 +6,11 @@ const idList: number[] = [];
* @returns {number}
*/
export default function generateId(length?: number) {
length || (length = 16);
let id;
while (!id || idList.includes(id)) {
id = Math.ceil(Math.random() * 10 ** 16);
}
idList.push(id)
length || (length = 16)
let id
while (!id || idList.includes(id)) {
id = Math.ceil(Math.random() * 10 ** 16)
}
idList.push(id)
return id
}