Browse Source

fix (modal): 修复对话框 hook 不设置 loaded问题 (#1143)

fix (modal):  修复对话框 hook 不设置 loaded问题
pull/1152/head
江麻妞 5 years ago
committed by GitHub
parent
commit
95aca2ab8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/components/Modal/src/hooks/useModal.ts

1
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;
};

Loading…
Cancel
Save