Skip to content

Commit 35a87d0

Browse files
committed
fix: remove debug logs from sidebar icon loader
1 parent 5f91f41 commit 35a87d0

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

adminforth/spa/src/utils.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,27 +86,21 @@ export const loadFile = (file: string) => {
8686
if (file.startsWith('http')) {
8787
return file;
8888
}
89-
console.log('file', file);
9089
let path;
9190
let baseUrl = '';
9291
if (file.startsWith('@/')) {
9392
path = file.replace('@/', '');
94-
console.log('path', path);
95-
const fileModulePath = `./${path}`;
96-
console.log('imort.meta.url', import.meta.url);
97-
baseUrl = new URL(`./${path}` ,import.meta.url).href;
98-
console.log('baseUrl', baseUrl);
93+
baseUrl = new URL(`./${path}`, import.meta.url).href;
9994
} else if (file.startsWith('@@/')) {
10095
path = file.replace('@@/', '');
101-
const fileModulePath = `./${path}`;
102-
baseUrl = new URL(`./${path}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
96+
baseUrl = new URL(`./custom/${path}`, import.meta.url).href;
10397
} else {
104-
const fileModulePath = `./${file}`;
105-
baseUrl = new URL(`./${file}`, new URL(import.meta.url).origin + new URL(import.meta.url).pathname).href;
98+
baseUrl = new URL(`./${file}`, import.meta.url).href;
10699
}
107100
return baseUrl;
108101
}
109102

103+
110104
export function checkEmptyValues(value: any, viewType: 'show' | 'list' ) {
111105
const config: CoreConfig | {} | null = useCoreStore().config;
112106
let emptyFieldPlaceholder = '';

0 commit comments

Comments
 (0)