背景色修改
This commit is contained in:
parent
b7c4966727
commit
cf6d539d59
@ -227,7 +227,7 @@ export default function Index() {
|
|||||||
setShowSearchBox(false)
|
setShowSearchBox(false)
|
||||||
|
|
||||||
// setNewname(location.pathname)
|
// setNewname(location.pathname)
|
||||||
setPathArray([{ title: <Link to={'/home'}>首页</Link> }, { title: '编辑项目' }])
|
setPathArray([{ title: <Link to={'/home'}>首页</Link> }, { title: '编辑项目' }])
|
||||||
} else if (location.pathname.includes('/proj-eall')) {
|
} else if (location.pathname.includes('/proj-eall')) {
|
||||||
setNow('编辑项目')
|
setNow('编辑项目')
|
||||||
setShowSearchBox(false)
|
setShowSearchBox(false)
|
||||||
@ -330,13 +330,16 @@ export default function Index() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('监听type',type);
|
console.log('监听type', type);
|
||||||
nav('/home', {
|
if (location.pathname.includes('/home')) {
|
||||||
state: {
|
nav('/home', {
|
||||||
keyword: keywords,
|
state: {
|
||||||
name: type
|
keyword: keywords,
|
||||||
}
|
name: type
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}, [type]);
|
}, [type]);
|
||||||
|
|
||||||
const handleSearch = (value: string) => {
|
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);
|
console.log(e.target.value);
|
||||||
if(e.target.value == ''){
|
if (e.target.value == '') {
|
||||||
setKeywords('')
|
setKeywords('')
|
||||||
nav('/home', {
|
nav('/home', {
|
||||||
state: {
|
state: {
|
||||||
@ -449,7 +452,7 @@ export default function Index() {
|
|||||||
{ value: 'MATERIAL', label: '写材料' },
|
{ value: 'MATERIAL', label: '写材料' },
|
||||||
{ value: 'ALL', label: '全托管' },
|
{ value: 'ALL', label: '全托管' },
|
||||||
]}
|
]}
|
||||||
defaultValue=""
|
defaultValue=""
|
||||||
/>
|
/>
|
||||||
<div style={{
|
<div style={{
|
||||||
width: '253px',
|
width: '253px',
|
||||||
|
Loading…
Reference in New Issue
Block a user