【功能修复】全局:Description 描述组件,打包后,第二次点击空白的问题

pull/43/head
YunaiV 2024-07-27 23:44:08 +08:00
parent e403493865
commit 5c89365c44
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export function useDescription(props?: Partial<DescriptionProps>): UseDescReturn
const loaded = ref(false)
function register(instance: DescInstance) {
if (unref(loaded) && isProdMode())
if (unref(loaded) && isProdMode() && instance == unref(desc))
return
desc.value = instance