adminforth 2.13.0-next.8 → 2.13.0-next.9
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.
- package/dist/spa/src/utils.ts +4 -0
- package/package.json +1 -1
package/dist/spa/src/utils.ts
CHANGED
|
@@ -88,9 +88,13 @@ export const loadFile = (file: string) => {
|
|
|
88
88
|
}
|
|
89
89
|
let path;
|
|
90
90
|
let baseUrl = '';
|
|
91
|
+
console.log('loadFile', file, "import.meta.url", import.meta.url);
|
|
91
92
|
if (file.startsWith('@/')) {
|
|
93
|
+
console.log('loading from @/');
|
|
92
94
|
path = file.replace('@/', '');
|
|
95
|
+
console.log('path', path);
|
|
93
96
|
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
|
|
97
|
+
console.log('baseUrl', baseUrl);
|
|
94
98
|
} else if (file.startsWith('@@/')) {
|
|
95
99
|
path = file.replace('@@/', '');
|
|
96
100
|
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
|