调整异常

This commit is contained in:
2026-10-18 16:10:50 +08:00
parent f2e6d2b3f1
commit 5a6dc3b9f7
32 changed files with 9 additions and 7 deletions
@@ -87,7 +87,7 @@ export default function MecHeader({ period }: HeaderProps) {
浅色版保留标准蓝,深色版提亮成 #62B6E8,两版都按主题切换。
源图 379x246(官网 header logo 抠底),按 56px 高等比显示 → 86px 宽 */}
<img
src={isLight ? '/welltrust-qap/welltrust-logo-on-light.png' : '/welltrust-qap/welltrust-logo-on-dark.png'}
src={isLight ? '/mod-assets/welltrust-qap/welltrust-logo-on-light.png' : '/mod-assets/welltrust-qap/welltrust-logo-on-dark.png'}
alt="WELL TRUST PRECISION 和信精密"
width={86}
height={56}
@@ -27,5 +27,5 @@ const METHOD_IMAGE: Record<string, string> = {
/** 方法 id → 图片 URL;没有配图时返回 undefined,由调用方回退到图标 */
export function methodImageSrc(id: string): string | undefined {
const slug = METHOD_IMAGE[id];
return slug ? `${import.meta.env.BASE_URL}welltrust-qap/methods/${slug}.jpg` : undefined;
return slug ? `${import.meta.env.BASE_URL}mod-assets/welltrust-qap/methods/${slug}.jpg` : undefined;
}
+1 -1
View File
@@ -187,7 +187,7 @@ export async function initDatabase(): Promise<Database> {
// sql.js 浏览器构建会请求 sql-wasm-browser.wasm,而 public/ 下只放了 sql-wasm.wasm
// (两者字节一致)。统一指回已存在的文件,否则未命中路径会被 SPA fallback
// 返回 index.html,报 "expected magic word 00 61 73 6d, found 3c 21 64 6f"。
locateFile: () => '/welltrust-qap/sql-wasm.wasm',
locateFile: () => '/mod-assets/welltrust-qap/sql-wasm.wasm',
});
db = new SQL.Database();