diff --git a/.npmrc b/.npmrc index 9512f2f..bbed5c0 100644 --- a/.npmrc +++ b/.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 diff --git a/src/stores/counter.ts b/src/stores/counter.ts index 67c49ba..733543d 100644 --- a/src/stores/counter.ts +++ b/src/stores/counter.ts @@ -16,3 +16,7 @@ export const useCounterStore = defineStore( persist: true, }, ); + +if (import.meta.hot) { + import.meta.hot.accept(acceptHMRUpdate(useCounterStore, import.meta.hot)); +}