场景页跳转cont.
This commit is contained in:
parent
131b3cc65c
commit
b929fe1aaf
|
|
@ -18,7 +18,7 @@ function Index(props) {
|
|||
useEffect(() => {
|
||||
document.title = '场景详情-软件工厂专区';
|
||||
getDetail()
|
||||
}, []);
|
||||
}, [props.match.params.sceneId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (detail.id) {
|
||||
|
|
@ -78,7 +78,7 @@ function Index(props) {
|
|||
{
|
||||
otherList.map((item, index) => {
|
||||
return (
|
||||
<li key={index}><Link to={ `/softwareFactory/scene/${ index }` }>{item.name}</Link></li>
|
||||
<li key={index}><Link to={ `/softwareFactory/scene/${ item.id }` }>{item.name}</Link></li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue