diff --git a/resources/ts/index.d.ts b/resources/ts/index.d.ts index 4c614ed..ba9101e 100644 --- a/resources/ts/index.d.ts +++ b/resources/ts/index.d.ts @@ -1,6 +1,6 @@ -export {}; -import { AxiosStatic } from "axios"; +export { }; import type VueTagsInput from "@sipec/vue3-tags-input"; +import { AxiosStatic } from "axios"; // * Enum interface EnumInterface { @@ -75,7 +75,7 @@ declare global { Swal: Function; vueDebug: boolean | undefined; __SYSTEM: { - _asset: string; + _asset: Record; _locale: string; _routes: Record; _translations: { diff --git a/resources/ts/modules/asset.ts b/resources/ts/modules/asset.ts index f4e7ea8..7db4d6e 100644 --- a/resources/ts/modules/asset.ts +++ b/resources/ts/modules/asset.ts @@ -1,7 +1,7 @@ export default { methods: { asset(path: string) { - return `${window.__SYSTEM._asset}${path}`; + return `${window.__SYSTEM._asset[path] ?? path}`; }, }, }; diff --git a/resources/views/modules/script-constants.blade.php b/resources/views/modules/script-constants.blade.php index ea82742..1b03156 100644 --- a/resources/views/modules/script-constants.blade.php +++ b/resources/views/modules/script-constants.blade.php @@ -1,8 +1,10 @@ -