adminforth 1.1.82 → 1.1.83

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.
@@ -14,7 +14,7 @@ export async function callApi({path, method, body=undefined} ) {
14
14
  },
15
15
  body: JSON.stringify(body),
16
16
  };
17
- const fullPath = `${import.meta.env.VITE_ADMINFORTH_PUBLIC_PATH || ''}${path}`;
17
+ const fullPath = `${import.meta.env.VUE_APP_ADMINFORTH_PUBLIC_PATH || ''}${path}`;
18
18
  const r = await fetch(fullPath, options);
19
19
  if (r.status == 401 ) {
20
20
  useUserStore().unauthorize();
@@ -2,6 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import vue from '@vitejs/plugin-vue'
5
+ import { clear, error } from 'node:console';
5
6
 
6
7
 
7
8
  const customLogger = {
@@ -26,7 +27,13 @@ const customLogger = {
26
27
  clear() {
27
28
  console.clear();
28
29
  },
30
+ clearScreen() {
31
+ console.clear();
32
+ },
29
33
  hasWarned: false,
34
+ hasErrorLogged: (error: any): boolean => {
35
+ return false;
36
+ }
30
37
  };
31
38
 
32
39
  // https://vitejs.dev/config/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spa/src/utils.ts CHANGED
@@ -14,7 +14,7 @@ export async function callApi({path, method, body=undefined} ) {
14
14
  },
15
15
  body: JSON.stringify(body),
16
16
  };
17
- const fullPath = `${import.meta.env.VITE_ADMINFORTH_PUBLIC_PATH || ''}${path}`;
17
+ const fullPath = `${import.meta.env.VUE_APP_ADMINFORTH_PUBLIC_PATH || ''}${path}`;
18
18
  const r = await fetch(fullPath, options);
19
19
  if (r.status == 401 ) {
20
20
  useUserStore().unauthorize();
@@ -2,6 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import vue from '@vitejs/plugin-vue'
5
+ import { clear, error } from 'node:console';
5
6
 
6
7
 
7
8
  const customLogger = {
@@ -26,7 +27,13 @@ const customLogger = {
26
27
  clear() {
27
28
  console.clear();
28
29
  },
30
+ clearScreen() {
31
+ console.clear();
32
+ },
29
33
  hasWarned: false,
34
+ hasErrorLogged: (error: any): boolean => {
35
+ return false;
36
+ }
30
37
  };
31
38
 
32
39
  // https://vitejs.dev/config/