From 124b2244d62b259dc20f103bd2004cfd94ada76d Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Wed, 10 Apr 2024 22:50:30 +0800 Subject: [PATCH] fix type errors of MkCode & MkModalWindow --- packages/client/src/components/MkCode.core.vue | 1 + packages/client/src/components/MkModalWindow.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/MkCode.core.vue b/packages/client/src/components/MkCode.core.vue index 11720b4f62..7e3cdac562 100644 --- a/packages/client/src/components/MkCode.core.vue +++ b/packages/client/src/components/MkCode.core.vue @@ -29,6 +29,7 @@ if (props.lang != null && !(props.lang in Prism.languages)) { const { lang } = props; loadLanguage(props.lang).then( // onLoaded + // biome-ignore lint/suspicious/noAssignInExpressions: assign intentionally () => (prismLang.value = lang), // onError () => {}, diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index b7ba30dd17..3d04ce00de 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -97,7 +97,7 @@ const modal = shallowRef>(); const rootEl = shallowRef(); const headerEl = shallowRef(); -const close = (ev) => { +const close = (ev?) => { modal.value?.close(ev); };