online加声音目录

This commit is contained in:
whm1216
2025-12-02 00:57:34 +08:00
parent 7835a77ae2
commit 3ecb7d8cfb
37 changed files with 2444 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import NavExt from './nav-ext';
import * as tf from '@tensorflow/tfjs';
import './tensorflow';
import './sound.js';
import * as Blockly from 'blockly/core';
NavExt.init();
@@ -292,7 +293,10 @@ async function createModal() {
createModal();
await loadAndDisplayAllModels();
// 使用立即执行的异步函数,避免 top-level await 导致模块异步加载
(async () => {
await loadAndDisplayAllModels();
})();
function openModal() {
loadAndDisplayAllModels();

View File

@@ -71,6 +71,9 @@ export default class PythonShell {
this.pyodide.setInterruptBuffer(this.interruptBuffer);
this.kernelLoaded = true;
this.$loader.remove();
if (this.$loader && this.$loader.remove) {
this.$loader.remove();
}
this.$loader = null;
}

File diff suppressed because it is too large Load Diff