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"
@@ -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(fileModulePath ,import.meta.url).href;
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(fileModulePath, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
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(fileModulePath, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.14",
3
+ "version": "2.13.0-next.16",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",