From 1e0158636b7627b789029523c9b5934fbd5c7c1a Mon Sep 17 00:00:00 2001 From: Rewrite0 <49576640+Rewrite0@users.noreply.github.com> Date: Wed, 14 Jun 2023 23:10:53 +0800 Subject: [PATCH] fix: type error --- webui/src/components/ab-label.vue | 4 ++-- webui/src/components/ab-status-bar.vue | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/webui/src/components/ab-label.vue b/webui/src/components/ab-label.vue index 0601bf56..1eaa20af 100644 --- a/webui/src/components/ab-label.vue +++ b/webui/src/components/ab-label.vue @@ -8,13 +8,13 @@ const props = withDefaults( } ); -const abLabel = () => { +function abLabel() { if (typeof props.label === 'function') { return props.label(); } else { return props.label; } -}; +}