lex 1 year ago
parent
commit
2a0f41b61c
1 changed files with 3 additions and 4 deletions
  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(