pvp创建获取

This commit is contained in:
mamengke01
2021-01-06 16:05:15 +08:00
parent d2f76c9198
commit a785a4733a
17 changed files with 189 additions and 71 deletions

View File

@@ -19,7 +19,7 @@ export interface DicFuncSwitch {
const str = readJsonFile(FILENAME.DIC_FUNC_SWITCH);
let arr = JSON.parse(str);
export const dicFuncSwitch = new Array<DicFuncSwitch>();
export const dicFuncSwitch = new Map<number, DicFuncSwitch>();
arr.forEach(o => {
dicFuncSwitch.push(o);
dicFuncSwitch.set(o.id, o);
});