소스 검색

Merge branch 'hqyDevNewVersion' of http://git.dayaedu.com/liushengqiang/music-score into feature-tianyong-newVersion

TIANYONG 1 년 전
부모
커밋
bdb4822afa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/page-instrument/App.tsx

+ 1 - 1
src/page-instrument/App.tsx

@@ -98,7 +98,7 @@ export default defineComponent({
       const _loading = document.getElementById("loading");
       _loading && document.body.removeChild(_loading);
       // console.log(query);
-      if (query.platform == "pc") {
+      if (query.platform == "pc" || query.isPreView) {
         document.body.addEventListener("keyup", (e: KeyboardEvent) => onKeyBoard(e));
         // 禁用右键菜单
         document.addEventListener("contextmenu", function (event) {