Commit 4ff0d25f authored by wildfirecode13's avatar wildfirecode13

1

parent 4d1ea0a3
//@ts-ignore 存在my就初始化
interface ResData {
/**
......@@ -129,6 +129,7 @@ export namespace RES {
let p: Promise<any> = new Promise((resolve, reject) => {
loadResList((s) => {
if (s) {
//@ts-ignore 存在my就初始化
resolve()
} else {
reject();
......@@ -148,6 +149,7 @@ export namespace RES {
//已经加载完成的直接返回
if (groupsCompleteHash[name]) {
return new Promise((resolve) => {
//@ts-ignore 存在my就初始化
resolve()
})
}
......@@ -162,6 +164,7 @@ export namespace RES {
if (!arr || !arr.length) {
groupsCompleteHash[name] = true;
return new Promise((resolve) => {
//@ts-ignore 存在my就初始化
resolve()
})
}
......@@ -172,6 +175,7 @@ export namespace RES {
delete groupsPromiseHash[name];
if (s) {
groupsCompleteHash[name] = true;
//@ts-ignore 存在my就初始化
resolve()
} else {
reject();
......
......@@ -40,6 +40,7 @@ export class Module extends FYGE.Container {
}
Promise.all(arr).then(resolve, reject)
} else {
//@ts-ignore 存在my就初始化
resolve()
}
})
......
......@@ -18,7 +18,7 @@
"psd": "^3.2.0",
"ts-loader": "^4.0.0",
"tslint": "^5.9.1",
"typescript": "^4.1.2",
"typescript": "^4.0.2",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.1.0",
"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