From aa84274f0a85477a6878a81666940fb280194041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 18 Dec 2024 18:08:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=83=AD=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=9B=BF=E6=8D=A2=E6=94=AF=E6=8C=81=E5=88=B0=E8=AE=A1?= =?UTF-8?q?=E6=95=B0=E5=99=A8=E7=8A=B6=E6=80=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 2 +- src/stores/counter.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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)); +}