mirror of https://github.com/halo-dev/halo
perf: turn off preview mode when closing attachment detail modal
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
9c418f8532
commit
c3452a1cd0
|
@ -63,6 +63,8 @@ const getGroupName = (name: string | undefined) => {
|
|||
const onVisibleChange = (visible: boolean) => {
|
||||
emit("update:visible", visible);
|
||||
if (!visible) {
|
||||
policy.value = undefined;
|
||||
onlyPreview.value = false;
|
||||
emit("close");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue