adminforth 2.13.0-next.6 → 2.13.0-next.8

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.
@@ -90,12 +90,12 @@ export const loadFile = (file: string) => {
90
90
  let baseUrl = '';
91
91
  if (file.startsWith('@/')) {
92
92
  path = file.replace('@/', '');
93
- baseUrl = new URL(`./${path}`, import.meta.url.split('?')[0]).href;
93
+ baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
94
94
  } else if (file.startsWith('@@/')) {
95
95
  path = file.replace('@@/', '');
96
- baseUrl = new URL(`./custom/${path}`, import.meta.url.split('?')[0]).href;
96
+ baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
97
97
  } else {
98
- baseUrl = new URL(`./${file}`, import.meta.url.split('?')[0]).href;
98
+ baseUrl = new URL(`./${file}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
99
99
  }
100
100
  return baseUrl;
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.6",
3
+ "version": "2.13.0-next.8",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",