lex-xin před 4 roky
rodič
revize
2e606eec66
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      src/utils/validate.js

+ 4 - 0
src/utils/validate.js

@@ -31,6 +31,8 @@ export function vaildStudentUrl() {
   let returnUrl = ''
   if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mstudev.dayaedu.com'
+  } else if (/test/.test(url)) { // dev 环境
+    returnUrl = 'http://mstutest.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mstuonline.dayaedu.com'
   } else { // 默认dev环境
@@ -45,6 +47,8 @@ export function vaildTeacherUrl() {
   let returnUrl = ''
   if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mteadev.dayaedu.com'
+  } else if (/test/.test(url)) { // dev 环境
+    returnUrl = 'http://mteatest.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mteaonline.dayaedu.com'
   } else { // 默认dev环境