Archived
feat: 添加热模块替换支持到计数器状态管理
This commit is contained in:
1 parent
41ecc9ff56
commit
aa84274f0a
2 files changed
+5
-1
No files matched your search
@@ -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