diff --git a/src/stores/labels.ts b/src/stores/labels.ts index 8d2a8f5a..ff43cb35 100644 --- a/src/stores/labels.ts +++ b/src/stores/labels.ts @@ -1,4 +1,4 @@ -import { defineStore } from 'pinia' +import { acceptHMRUpdate, defineStore } from 'pinia' import LabelService from '@/services/label' import {success} from '@/message' @@ -134,3 +134,8 @@ export const useLabelStore = defineStore('label', { }, }, }) + +// support hot reloading +if (import.meta.hot) { + import.meta.hot.accept(acceptHMRUpdate(useLabelStore, import.meta.hot)) +} \ No newline at end of file diff --git a/src/stores/lists.ts b/src/stores/lists.ts index b12923cd..36f7b96b 100644 --- a/src/stores/lists.ts +++ b/src/stores/lists.ts @@ -1,5 +1,5 @@ import {watch, reactive, shallowReactive, unref, toRefs, readonly} from 'vue' -import {defineStore} from 'pinia' +import {acceptHMRUpdate, defineStore} from 'pinia' import {useI18n} from 'vue-i18n' import ListService from '@/services/list' @@ -179,4 +179,9 @@ export function useList(listId: MaybeRef) { list, save, } +} + +// support hot reloading +if (import.meta.hot) { + import.meta.hot.accept(acceptHMRUpdate(useListStore, import.meta.hot)) } \ No newline at end of file