Browse Source

Update index.vue

lex 10 months ago
parent
commit
e35eaed3bd
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/accompaniment/index.vue

+ 9 - 2
src/views/accompaniment/index.vue

@@ -556,9 +556,16 @@ export default {
         this.parts = [];
         this.parts = [];
         this.selectPart = 0;
         this.selectPart = 0;
       }
       }
+      let url = location.origin +
+        "/accompany-web/"
+      if(/dayaedu.com/.test(location.origin)) {
+        url = location.origin +
+        "/accompany/"
+      }
+
       this.accompanyUrl =
       this.accompanyUrl =
-        location.origin +
-        "/accompany-web/?Authorization=" +
+        url +
+        "?Authorization=" +
         getToken() +
         getToken() +
         "&platform=web&isOpenMetronome=" +
         "&platform=web&isOpenMetronome=" +
         num +
         num +