adminforth 2.25.0-next.1 → 2.25.0-next.3
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.
|
@@ -122,7 +122,7 @@ import { useElementSize } from '@vueuse/core'
|
|
|
122
122
|
const props = defineProps({
|
|
123
123
|
options: Array,
|
|
124
124
|
modelValue: {
|
|
125
|
-
type: Array as PropType<(string | number)[]>,
|
|
125
|
+
type: Array as PropType<(string | number)[] | (string | number)>,
|
|
126
126
|
default: () => [],
|
|
127
127
|
},
|
|
128
128
|
multiple: {
|
|
@@ -92,6 +92,7 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
92
92
|
|
|
93
93
|
// console.log('🔔 subscribeToMenuBadges', mi.badge, JSON.stringify(mi));
|
|
94
94
|
if (mi.badge !== undefined) {
|
|
95
|
+
websocket.unsubscribe(`/opentopic/update-menu-badge/${mi.itemId}`);
|
|
95
96
|
websocket.subscribe(`/opentopic/update-menu-badge/${mi.itemId}`, ({ badge }) => {
|
|
96
97
|
mi.badge = badge;
|
|
97
98
|
});
|
|
@@ -121,8 +122,6 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
121
122
|
item.badge = badge;
|
|
122
123
|
}
|
|
123
124
|
});
|
|
124
|
-
// TODO: This thing was created for something. Find out why
|
|
125
|
-
// websocket.unsubscribeAll();
|
|
126
125
|
subscribeToMenuBadges();
|
|
127
126
|
|
|
128
127
|
}
|