forked from Gitlink/forgeplus-react
FIX build bug
This commit is contained in:
parent
4bfd4234b5
commit
5e157952b4
|
@ -29,27 +29,27 @@ class CoursesIndex extends Component {
|
||||||
{/*课堂讨论*/}
|
{/*课堂讨论*/}
|
||||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId/edit"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId/edit"
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/new"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||||
render={
|
render={
|
||||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
(props) => (<TopicDetail {...this.props} {...this.state} {...props} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||||
render={
|
render={
|
||||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
(props) => (<TopicDetail {...this.props} {...this.state} {...props} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
||||||
render={
|
render={
|
||||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
|
@ -19,25 +19,7 @@ function Home({ mygetHelmetapi, user }) {
|
||||||
updata: null
|
updata: null
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
async function init() {
|
|
||||||
const sys = await axios.get('/users/system_update.json')
|
|
||||||
const home = await axios.get('/home/index.json')
|
|
||||||
setResource({
|
|
||||||
...resource,
|
|
||||||
loading: false,
|
|
||||||
updata: sys.data,
|
|
||||||
data: home.data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
init()
|
|
||||||
} catch (error) {
|
|
||||||
console.log(error, '---in home init-----')
|
|
||||||
}
|
|
||||||
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
let shixuntype = false
|
let shixuntype = false
|
||||||
let pathstype = false
|
let pathstype = false
|
||||||
if (mygetHelmetapi) {
|
if (mygetHelmetapi) {
|
||||||
|
@ -94,4 +76,4 @@ function Home({ mygetHelmetapi, user }) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SnackbarHOC()(TPMIndexHOC(Home))
|
export default SnackbarHOC()(TPMIndexHOC(Home))
|
||||||
|
|
Loading…
Reference in New Issue