Browse Source

修改域名

lex-xin 4 years ago
parent
commit
2e606eec66
1 changed files with 4 additions and 0 deletions
  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环境