소스 검색

Update index.tsx

lex 1 년 전
부모
커밋
69b3c54eb6
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/hot-music-more/index.tsx

+ 4 - 2
src/views/hot-music-more/index.tsx

@@ -1,6 +1,6 @@
 import { computed, defineComponent, onMounted, reactive } from 'vue';
 import styles from './index.module.less';
-import { browser } from '@/helpers/utils';
+import { browser, vaildMusicScoreUrl } from '@/helpers/utils';
 import MSticky from '@/components/m-sticky';
 import MHeader from '@/components/m-header';
 import { useRouter } from 'vue-router';
@@ -127,7 +127,9 @@ export default defineComponent({
     };
 
     const onDetail = (item: any) => {
-      let src = `${location.origin}/instrument?id=${item?.id}&showGuide=true`;
+      let src = `${vaildMusicScoreUrl()}/instrument?id=${
+        item?.id
+      }&showGuide=true`;
       postMessage({
         api: 'openAccompanyWebView',
         content: {