Skip to content

Commit 61f1fc7

Browse files
committed
fix: add debug logs for the sidebar icon
1 parent 089d005 commit 61f1fc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adminforth/spa/src/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ export const loadFile = (file: string) => {
8888
}
8989
let path;
9090
let baseUrl = '';
91+
console.log('loadFile', file, "import.meta.url", import.meta.url);
9192
if (file.startsWith('@/')) {
93+
console.log('loading from @/');
9294
path = file.replace('@/', '');
95+
console.log('path', path);
9396
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
97+
console.log('baseUrl', baseUrl);
9498
} else if (file.startsWith('@@/')) {
9599
path = file.replace('@@/', '');
96100
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;

0 commit comments

Comments
 (0)