fix (modal): 修复对话框 hook 不设置 loaded问题 (#1143)
fix (modal): 修复对话框 hook 不设置 loaded问题
This commit is contained in:
parent
e00578c40a
commit
95aca2ab8d
|
|
@ -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…
Reference in New Issue