Browse Source

Update validate.js

lex-xin 4 years ago
parent
commit
3b0593e996
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/utils/validate.js

+ 2 - 6
src/utils/validate.js

@@ -29,9 +29,7 @@ export function isvalidPhone(str) {
 export function vaildStudentUrl() {
   let url = window.location.href
   let returnUrl = ''
-  if (/test/.test(url)) { // test环境
-    returnUrl = 'http://mstutest.dayaedu.com'
-  } else if (/dev/.test(url)) { // dev 环境
+  if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mstudev.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mstuonline.dayaedu.com'
@@ -45,9 +43,7 @@ export function vaildStudentUrl() {
 export function vaildTeacherUrl() {
   let url = window.location.href
   let returnUrl = ''
-  if (/test/.test(url)) { // test环境
-    returnUrl = 'http://mteatest.dayaedu.com'
-  } else if (/dev/.test(url)) { // dev 环境
+  if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mteadev.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mteaonline.dayaedu.com'