Pre Merge pull request !41 from Henry/fix-bug

pull/41/MERGE
Henry 2024-03-01 13:13:05 +00:00 committed by Gitee
commit 35343b25a6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 3 deletions

View File

@ -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<DescriptionProps>): UseDescReturnType {
if (!getCurrentInstance())
@ -10,8 +10,8 @@ export function useDescription(props?: Partial<DescriptionProps>): 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)