json:fix数组重复加载的bug

This commit is contained in:
luying
2021-06-07 09:53:02 +08:00
parent fe73748cd7
commit c2436c85a8
17 changed files with 17 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ export const dicEvent = new Map<number, DicEvent>();
export const dicEventList = new Array<DicEvent>();
export function loadEvent () {
dicEventList.splice(0, dicEventList.length);
let arr = readFileAndParse(FILENAME.DIC_EVENT);
arr.forEach(o => {