军团活动:无法获取道具

This commit is contained in:
luying
2022-04-25 10:00:57 +08:00
parent e7c91b05b0
commit fe95c7169f
+2 -2
View File
@@ -226,8 +226,8 @@ export function getRandEelmWithWeight<T extends { weight: number }>(randomList:
* @param source * @param source
*/ */
export function sortArrRandom<T>(source: T[] = []): T[] { export function sortArrRandom<T>(source: T[] = []): T[] {
let arr: T[] = deepCopy(source); let newArr: T[] = [...source];
return arr.sort(() => { return Math.random() - 0.5; }); return newArr.sort(() => { return Math.random() - 0.5; });
} }
/** /**