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

fix (modal):  修复对话框 hook 不设置 loaded问题
This commit is contained in:
江麻妞 2021-08-30 09:05:15 +08:00 committed by GitHub
parent e00578c40a
commit 95aca2ab8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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