Commit 4ff0d25f authored by wildfirecode13's avatar wildfirecode13

1

parent 4d1ea0a3
//@ts-ignore 存在my就初始化
interface ResData { interface ResData {
/** /**
...@@ -129,6 +129,7 @@ export namespace RES { ...@@ -129,6 +129,7 @@ export namespace RES {
let p: Promise<any> = new Promise((resolve, reject) => { let p: Promise<any> = new Promise((resolve, reject) => {
loadResList((s) => { loadResList((s) => {
if (s) { if (s) {
//@ts-ignore 存在my就初始化
resolve() resolve()
} else { } else {
reject(); reject();
...@@ -148,6 +149,7 @@ export namespace RES { ...@@ -148,6 +149,7 @@ export namespace RES {
//已经加载完成的直接返回 //已经加载完成的直接返回
if (groupsCompleteHash[name]) { if (groupsCompleteHash[name]) {
return new Promise((resolve) => { return new Promise((resolve) => {
//@ts-ignore 存在my就初始化
resolve() resolve()
}) })
} }
...@@ -162,6 +164,7 @@ export namespace RES { ...@@ -162,6 +164,7 @@ export namespace RES {
if (!arr || !arr.length) { if (!arr || !arr.length) {
groupsCompleteHash[name] = true; groupsCompleteHash[name] = true;
return new Promise((resolve) => { return new Promise((resolve) => {
//@ts-ignore 存在my就初始化
resolve() resolve()
}) })
} }
...@@ -172,6 +175,7 @@ export namespace RES { ...@@ -172,6 +175,7 @@ export namespace RES {
delete groupsPromiseHash[name]; delete groupsPromiseHash[name];
if (s) { if (s) {
groupsCompleteHash[name] = true; groupsCompleteHash[name] = true;
//@ts-ignore 存在my就初始化
resolve() resolve()
} else { } else {
reject(); reject();
......
...@@ -40,6 +40,7 @@ export class Module extends FYGE.Container { ...@@ -40,6 +40,7 @@ export class Module extends FYGE.Container {
} }
Promise.all(arr).then(resolve, reject) Promise.all(arr).then(resolve, reject)
} else { } else {
//@ts-ignore 存在my就初始化
resolve() resolve()
} }
}) })
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"psd": "^3.2.0", "psd": "^3.2.0",
"ts-loader": "^4.0.0", "ts-loader": "^4.0.0",
"tslint": "^5.9.1", "tslint": "^5.9.1",
"typescript": "^4.1.2", "typescript": "^4.0.2",
"uglifyjs-webpack-plugin": "^2.1.2", "uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.1.0", "webpack": "^4.1.0",
"webpack-cli": "^3.1.1", "webpack-cli": "^3.1.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment