feat: 添加热模块替换支持到计数器状态管理
This commit is contained in:
@ -16,3 +16,7 @@ export const useCounterStore = defineStore(
|
||||
persist: true,
|
||||
},
|
||||
);
|
||||
|
||||
if (import.meta.hot) {
|
||||
import.meta.hot.accept(acceptHMRUpdate(useCounterStore, import.meta.hot));
|
||||
}
|
||||
|
Reference in New Issue
Block a user