feat: 添加热模块替换支持到计数器状态管理
This commit is contained in:
2
.npmrc
2
.npmrc
@ -2,7 +2,7 @@ registry=https://registry.npmmirror.com/
|
||||
registry=https://mirrors.cloud.tencent.com/npm/
|
||||
registry=https://mirrors.huaweicloud.com/repository/npm/
|
||||
registry=https://registry.npmjs.org/
|
||||
registry=https://nexus.oo1.dev/repository/npm/
|
||||
# registry=https://nexus.oo1.dev/repository/npm/
|
||||
|
||||
# https://pnpm.io/zh/npmrc#node-mirrorltreleasedir
|
||||
use-node-version=22.12.0
|
||||
|
@ -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