部分优化

This commit is contained in:
黄心宇 2025-12-18 08:54:26 +08:00
parent 5fb7d07cc1
commit a1198e3fe6
4 changed files with 3 additions and 8 deletions

View File

@ -437,7 +437,7 @@
.line-3 {
height: 6px;
margin-right: 8px;
margin-right: 35px;
}
@keyframes wave1 {

View File

@ -19,8 +19,6 @@ function Index(props) {
const totalSize = 6 //
useEffect(() => {
console.log(searchValue);
if (searchValue) {
getProjectsList(1)
console.log(versionTotal === projectTotal === toolTotal === 0);

View File

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

View File

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