From 1d4fc3476d56f48cb890066962ea28956e7637b7 Mon Sep 17 00:00:00 2001 From: dgflash Date: Sun, 4 Aug 2024 11:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96JsonUtil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/core/utils/JsonUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/core/utils/JsonUtil.ts b/assets/core/utils/JsonUtil.ts index c1ac73f..a466215 100644 --- a/assets/core/utils/JsonUtil.ts +++ b/assets/core/utils/JsonUtil.ts @@ -52,7 +52,7 @@ export class JsonUtil { * 异步加载Json数据表 * @param name 资源名 */ - static loadAsync(name: string) { + static loadAsync(name: string): Promise { return new Promise((resolve, reject) => { if (data.has(name)) { resolve(data.get(name))