forked from Gitlink/forgeplus-react
删除package-lock
This commit is contained in:
commit
e69af9c003
File diff suppressed because it is too large
Load Diff
|
@ -29,27 +29,27 @@ class CoursesIndex extends Component {
|
|||
{/*课堂讨论*/}
|
||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId/edit"
|
||||
render={
|
||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
></Route>
|
||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/new"
|
||||
render={
|
||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
></Route>
|
||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||
render={
|
||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} />)
|
||||
}
|
||||
></Route>
|
||||
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||
render={
|
||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} />)
|
||||
}
|
||||
></Route>
|
||||
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
||||
render={
|
||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common} />)
|
||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
></Route>
|
||||
|
||||
|
|
|
@ -19,24 +19,6 @@ function Home({ mygetHelmetapi, user }) {
|
|||
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 pathstype = false
|
||||
|
|
Loading…
Reference in New Issue