fix: 加载

This commit is contained in:
unanmed 2024-04-20 12:33:27 +08:00
parent 86e6e76286
commit 2528a36864
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@ import EnemyTarget from '@/panel/enemyTarget.vue';
import KeyboardPanel from '@/panel/keyboard.vue';
import { MCGenerator } from './main/layout';
import { ResourceController } from './loader/controller';
import { readyAllResource } from './loader/load';
// ----- 类注册
Mota.register('class', 'AudioPlayer', AudioPlayer);
@ -130,3 +131,5 @@ Mota.register('module', 'MCGenerator', MCGenerator);
main.renderLoaded = true;
Mota.require('var', 'hook').emit('renderLoaded');
readyAllResource();

1
src/types/core.d.ts vendored
View File

@ -1140,6 +1140,7 @@ interface SplitImageData {
}
interface Main extends MainData {
renderLoaded: boolean;
/**
*
*/