Browse Source

Update index.vue

lex-xin 2 months ago
parent
commit
f1ddc59296
1 changed files with 6 additions and 0 deletions
  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>