Pre Merge pull request !41 from Henry/fix-bug
commit
35343b25a6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue