部分优化
This commit is contained in:
parent
5fb7d07cc1
commit
a1198e3fe6
|
|
@ -437,7 +437,7 @@
|
|||
|
||||
.line-3 {
|
||||
height: 6px;
|
||||
margin-right: 8px;
|
||||
margin-right: 35px;
|
||||
}
|
||||
|
||||
@keyframes wave1 {
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ function Index(props) {
|
|||
const totalSize = 6 // 聚合查询只查六个
|
||||
|
||||
useEffect(() => {
|
||||
console.log(searchValue);
|
||||
|
||||
if (searchValue) {
|
||||
getProjectsList(1)
|
||||
console.log(versionTotal === projectTotal === toolTotal === 0);
|
||||
|
|
|
|||
|
|
@ -42,8 +42,7 @@ function Index(props) {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
console.log(456);
|
||||
|
||||
if (props.location.pathname.includes(selectedType) || (!selectedType && !searchValue)) return
|
||||
if (selectedType) {
|
||||
props.history.push(`/softWareFactory/resource/${selectedType}`);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -51,9 +51,7 @@ class NewHeader extends Component {
|
|||
}
|
||||
}
|
||||
componentDidMount() {
|
||||
if (this.props.match.path !== '/' && this.props.match.path !== '/softwareFactory') {
|
||||
console.log(123);
|
||||
|
||||
if (this.props.match.path !== '/' && this.props.match.path !== '/softwareFactory') {
|
||||
this.setState({
|
||||
isHome: false
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue