json:fix数组重复加载的bug
This commit is contained in:
@@ -15,7 +15,7 @@ export interface DicRecruit {
|
||||
|
||||
export const dicRecruit = new Array<DicRecruit>();
|
||||
export function loadRecruit() {
|
||||
|
||||
dicRecruit.splice(0, dicRecruit.length);
|
||||
let arr = readFileAndParse(FILENAME.DIC_RECRUIT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
Reference in New Issue
Block a user