mirror of
https://github.com/motajs/template.git
synced 2026-11-19 10:44:30 +08:00
fix: 注释与实现错位问题
This commit is contained in:
1 parent
29c91c10d5
commit
c5b0a255ba
8 files changed
+45
-21
No files matched your search
@@ -51,7 +51,7 @@ export class LoadManager
|
||||
async *load(): AsyncIterable<number> {
|
||||
for (const task of this.addedTasks) {
|
||||
if (!task.contentLoaded) {
|
||||
task.start();
|
||||
Array.fromAsync(task.start());
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
@@ -90,7 +90,7 @@ export class LoadManager
|
||||
}
|
||||
|
||||
getTotalByte(): number {
|
||||
return this.loaded;
|
||||
return this.total;
|
||||
}
|
||||
|
||||
getLoadedTasks(): number {
|
||||
|
||||
Reference in new issue
Block a user