فهرست منبع

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: {