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
|
})
|