背景色修改
This commit is contained in:
parent
b7c4966727
commit
cf6d539d59
@ -330,13 +330,16 @@ export default function Index() {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('监听type',type);
|
||||
console.log('监听type', type);
|
||||
if (location.pathname.includes('/home')) {
|
||||
nav('/home', {
|
||||
state: {
|
||||
keyword: keywords,
|
||||
name: type
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}, [type]);
|
||||
|
||||
const handleSearch = (value: string) => {
|
||||
@ -349,9 +352,9 @@ export default function Index() {
|
||||
}
|
||||
})
|
||||
}
|
||||
const handleChange = (e:any) => {
|
||||
const handleChange = (e: any) => {
|
||||
console.log(e.target.value);
|
||||
if(e.target.value == ''){
|
||||
if (e.target.value == '') {
|
||||
setKeywords('')
|
||||
nav('/home', {
|
||||
state: {
|
||||
|
Loading…
Reference in New Issue
Block a user