Bläddra i källkod

Update validate.js

lex-xin 4 år sedan
förälder
incheckning
3b0593e996
1 ändrade filer med 2 tillägg och 6 borttagningar
  1. 2 6
      src/utils/validate.js

+ 2 - 6
src/utils/validate.js

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