删除package-lock

This commit is contained in:
sylor_huang@126.com 2020-04-28 18:40:04 +08:00
commit e69af9c003
3 changed files with 7 additions and 20232 deletions

20207
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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>

View File

@ -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