mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-08 03:16:49 +08:00
优化
This commit is contained in:
@@ -87,7 +87,6 @@ export class ResLoader {
|
||||
*/
|
||||
loadRemote<T extends Asset>(url: string, options: IRemoteOptions | null = null): Promise<T> {
|
||||
return new Promise<T>((resolve, reject) => {
|
||||
let options: IRemoteOptions | null = null;
|
||||
assetManager.loadRemote<T>(url, options, (err, data: T) => {
|
||||
if (err) {
|
||||
reject(null);
|
||||
|
||||
Reference in New Issue
Block a user