mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: add BASE_URL to useScriptTag
This commit is contained in:
1 parent
241dd6f9fb
commit
1b15214a1d
2 files changed
+6
-2
No files matched your search
@@ -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') },
|
||||
|
||||
Reference in new issue
Block a user