瀏覽代碼

Update validate.js

lex-xin 4 年之前
父節點
當前提交
3b0593e996
共有 1 個文件被更改,包括 2 次插入6 次删除
  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'