wkyy 4 달 전
부모
커밋
fc27f132fd
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      apis/utils/mixin.js

+ 4 - 4
apis/utils/mixin.js

@@ -4,12 +4,12 @@ function	getprefix(){
 		var url=window.location.href.split("#")[1]
 		if(url.indexOf("/pages/parents/") == 0){
 			return prefix+"parents-"
-		}
-		if(url.indexOf("/pages/teacher/") == 0){
+		} else if(url.indexOf("/pages/teacher/") == 0){
 			return prefix+"teacher-"
-		}
-		if(url.indexOf("/pages/youth/") == 0){
+		} else if(url.indexOf("/pages/youth/") == 0){
 			return prefix+"youth-"
+		} else {
+			return prefix+"parents-"
 		}
 		
 		return prefix