We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9156889 commit 142abd2Copy full SHA for 142abd2
adminforth/spa/src/utils/utils.ts
@@ -111,12 +111,12 @@ export const loadFile = (file: string) => {
111
let baseUrl = '';
112
if (file.startsWith('@/')) {
113
path = file.replace('@/', '');
114
- baseUrl = new URL(`./${path}`, import.meta.url).href;
+ baseUrl = new URL(`../${path}`, import.meta.url).href;
115
} else if (file.startsWith('@@/')) {
116
path = file.replace('@@/', '');
117
baseUrl = new URL(`../custom/${path}`, import.meta.url).href;
118
} else {
119
- baseUrl = new URL(`./${file}`, import.meta.url).href;
+ baseUrl = new URL(`../${file}`, import.meta.url).href;
120
}
121
return baseUrl;
122
0 commit comments