From 12c56497b53f1e7ffff4d0494b64ab889614fb13 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 18 Apr 2023 18:48:26 +0200 Subject: [PATCH] chore: type error --- src/stores/user.ts | 2 +- vite.config.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/user.ts b/src/stores/user.ts index b83f5b6..238a55a 100644 --- a/src/stores/user.ts +++ b/src/stores/user.ts @@ -31,4 +31,4 @@ export const useUserStore = defineStore('user', () => { }) if (import.meta.hot) - import.meta.hot.accept(acceptHMRUpdate(useUserStore, import.meta.hot)) + import.meta.hot.accept(acceptHMRUpdate(useUserStore as any, import.meta.hot)) diff --git a/vite.config.ts b/vite.config.ts index a37729c..75539cf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,6 +14,8 @@ import Inspector from 'vite-plugin-vue-inspector' import LinkAttributes from 'markdown-it-link-attributes' import Unocss from 'unocss/vite' import Shiki from 'markdown-it-shiki' + +// @ts-expect-error failed to resolve types import VueMacros from 'unplugin-vue-macros/vite' import WebfontDownload from 'vite-plugin-webfont-dl'