adminforth 2.13.0-next.14 → 2.13.0-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
'justify-center': !(coreStore.config?.showBrandLogoInSidebar !== false && (!iconOnlySidebarEnabled || !isSidebarIconOnly || (isSidebarIconOnly && isSidebarHovering)))
|
|
22
22
|
}"
|
|
23
23
|
>
|
|
24
|
-
<img
|
|
24
|
+
<img
|
|
25
25
|
:src="loadFile(coreStore.config?.brandLogo || '@/assets/logo.svg')"
|
|
26
26
|
:alt="`${ coreStore.config?.brandName } Logo`"
|
|
27
27
|
class="af-logo h-8 me-3"
|
package/dist/spa/src/utils.ts
CHANGED
|
@@ -94,15 +94,15 @@ export const loadFile = (file: string) => {
|
|
|
94
94
|
console.log('path', path);
|
|
95
95
|
const fileModulePath = `./${path}`;
|
|
96
96
|
console.log('imort.meta.url', import.meta.url);
|
|
97
|
-
baseUrl = new URL(
|
|
97
|
+
baseUrl = new URL(`./${path}` ,import.meta.url).href;
|
|
98
98
|
console.log('baseUrl', baseUrl);
|
|
99
99
|
} else if (file.startsWith('@@/')) {
|
|
100
100
|
path = file.replace('@@/', '');
|
|
101
101
|
const fileModulePath = `./${path}`;
|
|
102
|
-
baseUrl = new URL(
|
|
102
|
+
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
|
|
103
103
|
} else {
|
|
104
104
|
const fileModulePath = `./${file}`;
|
|
105
|
-
baseUrl = new URL(
|
|
105
|
+
baseUrl = new URL(`./${file}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
|
|
106
106
|
}
|
|
107
107
|
return baseUrl;
|
|
108
108
|
}
|