From 8854a363de729ea8a1714d178aa138cda8d8d830 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Fri, 10 Jan 2020 10:40:51 +0800
Subject: [PATCH] seo
---
public/react/public/index.html | 12 ++++++++++++
public/react/src/modules/tpm/TPMIndexHOC.js | 21 +++++++++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/public/react/public/index.html b/public/react/public/index.html
index 303128b18..4aa03bc6b 100755
--- a/public/react/public/index.html
+++ b/public/react/public/index.html
@@ -7,6 +7,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index aa88d7ea7..363acdba1 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -166,6 +166,27 @@ export function TPMIndexHOC(WrappedComponent) {
document.title="翻转课堂";
}
+ // if(this.props.match.path==="/"){
+ // document.title="EduCoder-IT实践教学平台_信息技术类精品课程网_大学生MOOC平台";
+ // }else if(this.props.match.path==="/403"){
+ // document.title="你没有权限访问";
+ // }else if(this.props.match.path==="/nopage"){
+ // document.title="没有找到该页面";
+ // }else if(this.props.match.path==="/shixuns"){
+ // document.title="EduCoder-IT实践教学平台_信息技术类精品课程网_大学生MOOC平台";
+ // }else if(this.props.match.path==="/paths"){
+ // document.title="实践课程_项目实战开发_web前端开发实训_web后端开发实战_人工智能技术-EduCoder";
+ // }else if(this.props.match.path==="/courses"){
+ // document.title="实训项目_php后端开发_app前端开发_java_python实训_C语言入门课程-EduCoder";
+ // }else if(this.props.match.path==="/competitions"){
+ // document.title="在线竞赛_计算机应用大赛_编程大赛_大学生设计大赛_全国高校绿色计算大赛-EduCoder";
+ // }else if(this.props.match.path==="/moop_cases"){
+ // document.title="教学案例-EduCoder";
+ // }else if(this.props.match.path==="/forums"){
+ // document.title="交流问答-EduCoder";
+ // }else if(this.props.match.path==="/forums"){
+ // document.title="交流问答-EduCoder";
+ // }
$.ajaxSetup({
cache: true