修改public服务

This commit is contained in:
whyour committed 2022-02-25 23:06:35 +08:00
1 parent 9927461ea9
commit 7dd87220ab
2 files changed
+10 -7

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ export function createRandomString(min: number, max: number): string {
newArr.push(arr.splice(Math.random() * arr.length, 1)[0]);
}
function getOne(arr) {
function getOne(arr: any[]) {
return arr[Math.floor(Math.random() * arr.length)];
}