lex hai 1 ano
pai
achega
f6e0a54ce3
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 2 2
      src/views/home/index.tsx
  2. 3 0
      src/views/home/modals/subject-modal/index.tsx

+ 2 - 2
src/views/home/index.tsx

@@ -287,14 +287,14 @@ export default defineComponent({
                 ? 'https://test.lexiaoya.cn'
                 : location.origin;
               // view-figner?subjectCode=pan-flute
-              const src = `${origin}/instrument/#/view-figner?Authorization=${userStore.getToken}&code=${item.code}`;
+              const src = `${origin}/instrument/#/view-figner?Authorization=${userStore.getToken}&code=${item.code}&platform=pc&type=listenMode`;
               // const src = `http://192.168.3.220:3000/instrument.html#/view-figner?Authorization=${userStore.getToken}&code=${item.code}`;
               if (window.matchMedia('(display-mode: standalone)').matches) {
                 state.application = window.matchMedia(
                   '(display-mode: standalone)'
                 ).matches;
                 forms.previewModal = true;
-                forms.previewParams.src = src + '&platform=pc';
+                forms.previewParams.src = src;
               } else {
                 window.open(src);
               }

+ 3 - 0
src/views/home/modals/subject-modal/index.tsx

@@ -23,6 +23,9 @@ export default defineComponent({
     onMounted(async () => {
       await catchStore.getSubjects();
       subjectList.value = catchStore.getSubjectList;
+      if (subjectList.value.length > 0) {
+        selectSubjectId.value = subjectList.value[0].id;
+      }
     });
     return () => (
       <div class={styles.subjectSync}>