lex 1 rok pred
rodič
commit
983707c0bb

+ 3 - 1
src/components/card-preview/listen-modal/index.module.less

@@ -17,7 +17,8 @@
 .musicScore {
   position: relative;
   width: 100%;
-  height: 518px;
+  min-height: 518px;
+  height: 100%;
   -webkit-overflow-scrolling: touch;
   // overflow: scroll;
 
@@ -26,6 +27,7 @@
     display: block;
     border: none;
     width: 100%;
+    min-height: 518px;
     height: 100%;
     z-index: 10;
   }

+ 7 - 8
src/utils/urlUtils.ts

@@ -1,10 +1,6 @@
 export function vaildUrl() {
   const url: string = window.location.href;
   let returnUrl = '';
-  // if (/192/.test(url) || /localhost/.test(url)) {
-  //   //本地环境
-  //   returnUrl = 'https://test.kt.colexiu.com';
-  // } else
   if (/kt.colexiu.com/.test(url)) {
     returnUrl = 'https://kt.colexiu.com';
   } else if (/test/.test(url)) {
@@ -12,6 +8,9 @@ export function vaildUrl() {
     returnUrl = 'https://test.kt.colexiu.com';
   } else if (/dev/.test(url)) {
     returnUrl = 'https://dev.kt.colexiu.com';
+  } else if (/192/.test(url) || /localhost/.test(url)) {
+    //   //本地环境
+    returnUrl = 'https://test.kt.colexiu.com';
   } else {
     // 默认dev环境
     returnUrl = 'https://kt.colexiu.com';
@@ -22,10 +21,7 @@ export function vaildUrl() {
 export function vaildMusicScoreUrl() {
   const url: string = window.location.href;
   let returnUrl = '';
-  // if (/192/.test(url) || /localhost/.test(url)) {
-  //   //本地环境
-  //   returnUrl = 'https://test.kt.colexiu.com';
-  // } else
+
   if (/kt.colexiu.com/.test(url)) {
     returnUrl = 'https://mec.colexiu.com';
   } else if (/test/.test(url)) {
@@ -33,6 +29,9 @@ export function vaildMusicScoreUrl() {
     returnUrl = 'https://test.kt.colexiu.com';
   } else if (/dev/.test(url)) {
     returnUrl = 'https://dev.kt.colexiu.com';
+  } else if (/localhost/.test(url)) {
+    //   //本地环境
+    returnUrl = 'https://test.kt.colexiu.com';
   } else {
     returnUrl = 'https://mec.colexiu.com';
   }