lex 1 год назад
Родитель
Сommit
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: {