Commit 95aca2ab8d252e72ab9b42f8aad5dd7de0bcea29
Committed by
GitHub
1 parent
e00578c4
fix (modal): 修复对话框 hook 不设置 loaded问题 (#1143)
fix (modal): 修复对话框 hook 不设置 loaded问题
Showing
1 changed file
with
1 additions
and
0 deletions
src/components/Modal/src/hooks/useModal.ts
... | ... | @@ -48,6 +48,7 @@ export function useModal(): UseModalReturnType { |
48 | 48 | if (unref(loaded) && isProdMode() && modalMethod === unref(modal)) return; |
49 | 49 | |
50 | 50 | modal.value = modalMethod; |
51 | + loaded.value = true; | |
51 | 52 | modalMethod.emitVisible = (visible: boolean, uid: number) => { |
52 | 53 | visibleData[uid] = visible; |
53 | 54 | }; | ... | ... |