adminforth 2.17.0-next.76 → 2.17.0-next.78
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.
|
@@ -111,12 +111,12 @@ export const loadFile = (file: string) => {
|
|
|
111
111
|
let baseUrl = '';
|
|
112
112
|
if (file.startsWith('@/')) {
|
|
113
113
|
path = file.replace('@/', '');
|
|
114
|
-
baseUrl = new URL(
|
|
114
|
+
baseUrl = new URL(`../${path}`, import.meta.url).href;
|
|
115
115
|
} else if (file.startsWith('@@/')) {
|
|
116
116
|
path = file.replace('@@/', '');
|
|
117
117
|
baseUrl = new URL(`../custom/${path}`, import.meta.url).href;
|
|
118
118
|
} else {
|
|
119
|
-
baseUrl = new URL(
|
|
119
|
+
baseUrl = new URL(`../${file}`, import.meta.url).href;
|
|
120
120
|
}
|
|
121
121
|
return baseUrl;
|
|
122
122
|
}
|