소스 검색

[change] close dialog

wenliming 3 년 전
부모
커밋
410af27c40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/view/components/give-dialog.vue

+ 1 - 1
src/view/components/give-dialog.vue

@@ -139,7 +139,7 @@ watch(
 const emits = defineEmits(["close", "confirm"]);
 
 const close = () => {
-    if (showPreview) {
+    if (showPreview.value) {
         showPreview.value = false;
     } else {
         emits("close", false);