adminforth 1.6.3-next.10 → 1.6.3-next.11

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.
@@ -34,6 +34,10 @@ export const useCoreStore = defineStore('core', () => {
34
34
  adminUser.value = null;
35
35
  }
36
36
 
37
+ async function resetResource() {
38
+ resource.value = null;
39
+ }
40
+
37
41
  async function toggleTheme() {
38
42
  theme.value = theme.value === 'light' ? 'dark' : 'light';
39
43
  if (theme.value === 'light') {
@@ -224,5 +228,6 @@ export const useCoreStore = defineStore('core', () => {
224
228
  theme,
225
229
  fetchMenuBadges,
226
230
  resetAdminUser,
231
+ resetResource,
227
232
  }
228
233
  })
@@ -43,6 +43,7 @@ export const useUserStore = defineStore('user', () => {
43
43
  });
44
44
  reconnect();
45
45
  coreStore.resetAdminUser();
46
+ coreStore.resetResource();
46
47
  unauthorize();
47
48
 
48
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.6.3-next.10",
3
+ "version": "1.6.3-next.11",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",