dev_aliyun_beta
caicai8 6 years ago
parent 31e29f572b
commit 72cd7ca2b3

@ -2,9 +2,9 @@ import React, { Component } from 'react';
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
import { SnackbarHOC } from 'educoder'; import "../usersInfo.css"
import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; import "../../../courses/css/members.css"
import { CNotificationHOC } from '../../../courses/common/CNotificationHOC' import "../../../courses/css/Courses.css"
import Loadable from 'react-loadable'; import Loadable from 'react-loadable';
import Loading from '../../../../Loading'; import Loading from '../../../../Loading';

@ -1,9 +1,5 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import "../usersInfo.css"
import "../../../courses/css/members.css"
import "../../../courses/css/Courses.css"
class GtopicBanks extends Component{ class GtopicBanks extends Component{
constructor(props){ constructor(props){
@ -19,12 +15,12 @@ class GtopicBanks extends Component{
] ]
} }
const menuData={ const menuData={
tab:'0', tab:'0',//tab选中的index
menuArray:[ menuArray:[//tab以及tab路由
{to:'/banks/gtopic/1',content:'内容详情'}, {to:'/banks/gtopic/1',content:'内容详情'},
{to:'/banks/gtopic/1/answer',content:'参考答案'}, {to:'/banks/gtopic/1/answer',content:'参考答案'},
], ],
category:'topic', category:'topic',//毕设选题
id:bankId id:bankId
} }
this.props.initPublic(crumbData,menuData); this.props.initPublic(crumbData,menuData);

@ -1,37 +0,0 @@
import React, { Component } from 'react';
import "../usersInfo.css"
class GtopicBanksAnswer extends Component{
constructor(props){
super(props);
}
componentDidMount = () =>{
let bankId = this.props.match.params.bankId
const crumbData={
title:'MySQL数据库编程开发实训基础篇111',
is_public:true,
crumbArray:[
{content:'详情'},
]
}
const menuData={
tab:'1',
menuArray:[
{to:'/banks/gtopic/1',content:'内容详情'},
{to:'/banks/gtopic/1/answer',content:'参考答案'},
],
category:'topic',
id:bankId
}
this.props.initPublic(crumbData,menuData);
}
render(){
return(
<div>
answer
</div>
)
}
}
export default GtopicBanksAnswer;
Loading…
Cancel
Save