feat(前端界面): 继续优化WebUI
build.yaml / build (push) Successful in 39s

This commit is contained in:
xiaoqidun committed 2026-09-04 13:48:50 +08:00
1 parent 1d4a7f4d5a
commit 0322995771
3 files changed
+20 -7

No files matched your search

+4 -2
View File
@@ -275,9 +275,10 @@ async function loadWASM() {
const response = await fetch("./ofdgo.wasm");
try {
setProgress("正在编译引擎", 35);
wasmModule = await WebAssembly.compileStreaming(response.clone());
wasmModule = await WebAssembly.compileStreaming(response);
} catch {
const bytes = await response.arrayBuffer();
const fallback = await fetch("./ofdgo.wasm");
const bytes = await fallback.arrayBuffer();
setProgress("正在编译引擎", 45);
wasmModule = await WebAssembly.compile(bytes);
}
@@ -2216,6 +2217,7 @@ function setProgress(text = "", percent = 0, status = "") {
}
const value = Math.max(0, Math.min(100, percent));
el.progressBar.style.width = `${value}%`;
el.progressBar.setAttribute("aria-valuenow", String(value));
}
function setStatus(text) {