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.
@@ -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
- 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;
99
94
  } else if (file.startsWith('@@/')) {
100
95
  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;
103
97
  } 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;
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 = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.19",
3
+ "version": "2.13.0-next.20",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",