Browse Source
fix (modal): 修复对话框 hook 不设置 loaded问题 (#1143)
fix (modal): 修复对话框 hook 不设置 loaded问题
pull/1152/head
江麻妞
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/components/Modal/src/hooks/useModal.ts
|
|
|
@ -48,6 +48,7 @@ export function useModal(): UseModalReturnType { |
|
|
|
if (unref(loaded) && isProdMode() && modalMethod === unref(modal)) return; |
|
|
|
|
|
|
|
modal.value = modalMethod; |
|
|
|
loaded.value = true; |
|
|
|
modalMethod.emitVisible = (visible: boolean, uid: number) => { |
|
|
|
visibleData[uid] = visible; |
|
|
|
}; |
|
|
|
|