mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-07 01:01:09 +08:00
优化JsonUtil
This commit is contained in:
@@ -52,7 +52,7 @@ export class JsonUtil {
|
||||
* 异步加载Json数据表
|
||||
* @param name 资源名
|
||||
*/
|
||||
static loadAsync(name: string) {
|
||||
static loadAsync(name: string): Promise<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (data.has(name)) {
|
||||
resolve(data.get(name))
|
||||
|
||||
Reference in New Issue
Block a user