소스 검색

调整接口

zaijin 2 년 전
부모
커밋
86c13d70be
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      h5_web/pages/publicCourse/publicCourse.vue

+ 5 - 5
h5_web/pages/publicCourse/publicCourse.vue

@@ -79,11 +79,11 @@ export default {
 			})
 			if (code === 200) {
 				const type = this.iswap();
-				// const { text } = data.find((item) => item.label === type);
-				// if (!location.href.includes(text)) {
-				// 	location.href = text;
-				// 	return
-				// }
+				const { text } = data.find((item) => item.label === type);
+				if (!location.href.includes(text)) {
+					location.href = text;
+					return
+				}
 				this.handleVideoList()
 			}
 		},