lex 1 年之前
父节点
当前提交
6fdb74088e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/courseware-play/component/musicScore.tsx

+ 4 - 4
src/views/courseware-play/component/musicScore.tsx

@@ -70,11 +70,11 @@ export default defineComponent({
     const renderSuccess = ref(false);
     const showVip = ref(false);
     const Authorization = storage.get(ACCESS_TOKEN);
-    const origin = /(localhost|192)/.test(location.host)
-      ? 'https://test.lexiaoya.cn'
-      : location.origin;
+    // const origin = /(localhost|192)/.test(location.host)
+    //   ? 'https://test.lexiaoya.cn'
+    //   : location.origin;
     let src = qs.stringifyUrl({
-      url: origin + '/instrument',
+      url: vaildMusicScoreUrl() + '/instrument',
       query: {
         id: props.music.content,
         modelType: 'practise',