From a274b8a945aed1816dda4b8aa73a7f3b5576d005 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 21 Aug 2019 18:21:33 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/App.js | 8 ++++----
.../react/src/modules/courses/coursesPublic/Addcourses.js | 6 +++++-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/public/react/src/App.js b/public/react/src/App.js
index 85d5f28f2..8d7e3e0f6 100644
--- a/public/react/src/App.js
+++ b/public/react/src/App.js
@@ -247,9 +247,9 @@ const Messagerouting= Loadable({
class App extends Component {
constructor(props) {
super(props)
- this.state = {
- mydisplay:false
- }
+ // this.state = {
+ // mydisplay:false
+ // }
}
HideAddcoursestypess=(i)=>{
@@ -317,7 +317,7 @@ class App extends Component {
this.HideAddcoursestypess(i)}/>
-
+ {/**/}
diff --git a/public/react/src/modules/courses/coursesPublic/Addcourses.js b/public/react/src/modules/courses/coursesPublic/Addcourses.js
index 85dee4b74..a629a51db 100644
--- a/public/react/src/modules/courses/coursesPublic/Addcourses.js
+++ b/public/react/src/modules/courses/coursesPublic/Addcourses.js
@@ -245,7 +245,11 @@ class Addcourses extends Component{
this.props.HideAddcoursestypess(3);
}
}catch (e) {
- this.props.showNotification(response.data.message);
+ notification.open({
+ message:"提示",
+ description:response.data.message
+ });
+ // this.props.showNotification(response.data.message);
}
return;
}