Skip to content

Commit 142abd2

Browse files
committed
1 parent 9156889 commit 142abd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ export const loadFile = (file: string) => {
111111
let baseUrl = '';
112112
if (file.startsWith('@/')) {
113113
path = file.replace('@/', '');
114-
baseUrl = new URL(`./${path}`, import.meta.url).href;
114+
baseUrl = new URL(`../${path}`, import.meta.url).href;
115115
} else if (file.startsWith('@@/')) {
116116
path = file.replace('@@/', '');
117117
baseUrl = new URL(`../custom/${path}`, import.meta.url).href;
118118
} else {
119-
baseUrl = new URL(`./${file}`, import.meta.url).href;
119+
baseUrl = new URL(`../${file}`, import.meta.url).href;
120120
}
121121
return baseUrl;
122122
}

0 commit comments

Comments
 (0)