소스 검색

Update index.vue

lex-xin 7 달 전
부모
커밋
f1ddc59296
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/views/Editor/EditorHeader/index.vue

+ 6 - 0
src/views/Editor/EditorHeader/index.vue

@@ -124,6 +124,12 @@ function handleSave() {
 /* 关闭页面 */
 function handleClose() {
   window.close()
+  window.parent.postMessage(
+    {
+      api: "notation_exit",
+    },
+    "*"
+  );
 }
 </script>