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)