From c681b9d4352923937f3dbcb826b2a9981583d425 Mon Sep 17 00:00:00 2001 From: Henry <2053622984@qq.com> Date: Tue, 12 Dec 2023 12:02:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug:=20=E4=BE=8B=E5=A6=82api=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AF=A6=E6=83=85=E5=BC=B9=E5=87=BA=E6=A1=86=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E7=82=B9=E5=87=BB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E6=B8=B2=E6=9F=93=E3=80=82=20=E6=8E=92?= =?UTF-8?q?=E6=9F=A5=E5=8F=91=E7=8E=B0=E8=BF=99=E6=AE=B5=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=9C=89=E9=97=AE=E9=A2=98=EF=BC=8C=E4=B8=8D=E5=A4=AA=E6=98=8E?= =?UTF-8?q?=E7=99=BD=E8=BF=99=E9=87=8C=E4=B8=BA=E4=BB=80=E4=B9=88=E8=A6=81?= =?UTF-8?q?=E5=88=A4=E6=96=ADpro=E7=8E=AF=E5=A2=83=E5=81=9A=E5=A4=84?= =?UTF-8?q?=E7=90=86=E3=80=82=20=E4=B8=94loaded.value=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E4=B8=BAfalse=EF=BC=8C=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E4=B9=9F=E4=B8=8D=E5=A4=AA=E6=98=8E=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Description/src/useDescription.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Description/src/useDescription.ts b/src/components/Description/src/useDescription.ts index b8ff011e9..b72f841bf 100644 --- a/src/components/Description/src/useDescription.ts +++ b/src/components/Description/src/useDescription.ts @@ -1,6 +1,6 @@ import { getCurrentInstance, ref, unref } from 'vue' import type { DescInstance, DescriptionProps, UseDescReturnType } from './typing' -import { isProdMode } from '@/utils/env' +// import { isProdMode } from '@/utils/env' export function useDescription(props?: Partial): UseDescReturnType { if (!getCurrentInstance()) @@ -10,8 +10,8 @@ export function useDescription(props?: Partial): UseDescReturn const loaded = ref(false) function register(instance: DescInstance) { - if (unref(loaded) && isProdMode()) - return + // if (unref(loaded) && isProdMode()) + // return desc.value = instance props && instance.setDescProps(props)