fix: add BASE_URL to useScriptTag

This commit is contained in:
ShareVB committed 2025-08-21 15:29:13 +02:00
1 parent 241dd6f9fb
commit 1b15214a1d
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -37,7 +37,9 @@ declare class Go {
run(instance: WebAssembly.Instance): Promise<void>;
}
const { load: loadGo } = useScriptTag('/age-wasm/wasm_exec.js', undefined, { type: 'module', manual: true });
const base = import.meta.env.BASE_URL ?? '/';
const { load: loadGo } = useScriptTag(`${base}age-wasm/wasm_exec.js`, undefined, { type: 'module', manual: true });
await loadGo();
@@ -6,7 +6,9 @@ import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams'
const { t } = useI18n();
const { load: loadPlurimath } = useScriptTag('/plurimath/index.js', undefined, { type: 'module', manual: true });
const base = import.meta.env.BASE_URL ?? '/';
const { load: loadPlurimath } = useScriptTag(`${base}plurimath/index.js`, undefined, { type: 'module', manual: true });
const formats = [
{ value: 'asciimath', label: t('tools.math-formats-converter.texts.label-asciimath') },