Explorar el Código

Merge branch 'iteration-beat-one' into jenkins

lex hace 1 año
padre
commit
51539d48ae
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      src/views/home/index.tsx

+ 3 - 4
src/views/home/index.tsx

@@ -164,10 +164,9 @@ export default defineComponent({
                 onClick={() => {
                   // forms.message = '节奏练习功能暂未开放,敬请期待!';
                   // showModalTone.value = true;
-                  // const origin = /(localhost|192)/.test(location.host)
-                  //   ? 'https://test.lexiaoya.cn'
-                  //   : location.origin;
-                  const origin = 'http://localhost:9002';
+                  const origin = /(localhost|192)/.test(location.host)
+                    ? 'https://test.lexiaoya.cn'
+                    : location.origin;
                   const src = `${origin}/classroom-app/#/tempo-practice?Authorization=${userStore.getToken}`;
                   if (window.matchMedia('(display-mode: standalone)').matches) {
                     state.application = window.matchMedia(