瀏覽代碼

Merge branch 'iteration-20250205-url' into jenkins

lex-xin 4 月之前
父節點
當前提交
34fe840db4
共有 1 個文件被更改,包括 4 次插入16 次删除
  1. 4 16
      src/views/notation/index.tsx

+ 4 - 16
src/views/notation/index.tsx

@@ -1,15 +1,13 @@
 import { defineComponent, onMounted, onUnmounted, ref } from 'vue';
 import { useUserStore } from '/src/store/modules/users';
 import styles from './index.module.less';
-import { modalClickMask, state } from '/src/state';
+import { modalClickMask } from '/src/state';
 import { NButton, NModal, NSpace, NSpin } from 'naive-ui';
-import { eventGlobal } from '/src/utils';
-import { useRouter } from 'vue-router';
+import { eventGlobal, exitFullscreen } from '/src/utils';
 import { getHttpOrigin } from '/src/helpers/utils';
 export default defineComponent({
   name: 'notation-a',
   setup() {
-    const router = useRouter();
     const show = ref(false);
     const key = new Date().getTime();
     const previewModal = ref(false);
@@ -25,9 +23,7 @@ export default defineComponent({
     const data = {
       src: `${
         /(192|localhost)/.test(location.origin)
-          ? // ?
-            // 'https://test.lexiaoya.cn'
-            'http://localhost:3050'
+          ? 'https://test.lexiaoya.cn'
           : getHttpOrigin()
       }/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${Authorization}${openCreateUrl}`
       //   src: `http://localhost:3050/#/create?Authorization=${Authorization}`
@@ -110,15 +106,7 @@ export default defineComponent({
                     },
                     '*'
                   );
-                  if (state.application) {
-                    document.exitFullscreen
-                      ? document.exitFullscreen()
-                      : document.mozCancelFullScreen
-                      ? document.mozCancelFullScreen()
-                      : document.webkitExitFullscreen
-                      ? document.webkitExitFullscreen()
-                      : '';
-                  }
+                  exitFullscreen()
                 }}>
                 确定
               </NButton>