adminforth 2.13.0-next.19 → 2.13.0-next.20
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.
- package/dist/spa/src/utils.ts +4 -10
- package/package.json +1 -1
package/dist/spa/src/utils.ts
CHANGED
|
@@ -86,27 +86,21 @@ export const loadFile = (file: string) => {
|
|
|
86
86
|
if (file.startsWith('http')) {
|
|
87
87
|
return file;
|
|
88
88
|
}
|
|
89
|
-
console.log('file', file);
|
|
90
89
|
let path;
|
|
91
90
|
let baseUrl = '';
|
|
92
91
|
if (file.startsWith('@/')) {
|
|
93
92
|
path = file.replace('@/', '');
|
|
94
|
-
|
|
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;
|
|
99
94
|
} else if (file.startsWith('@@/')) {
|
|
100
95
|
path = file.replace('@@/', '');
|
|
101
|
-
|
|
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;
|
|
103
97
|
} else {
|
|
104
|
-
|
|
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;
|
|
106
99
|
}
|
|
107
100
|
return baseUrl;
|
|
108
101
|
}
|
|
109
102
|
|
|
103
|
+
|
|
110
104
|
export function checkEmptyValues(value: any, viewType: 'show' | 'list' ) {
|
|
111
105
|
const config: CoreConfig | {} | null = useCoreStore().config;
|
|
112
106
|
let emptyFieldPlaceholder = '';
|