mirror of
https://github.com/langgenius/dify.git
synced 2026-08-28 18:24:32 +08:00
keep add and remove the same (#25277)
This commit is contained in:
parent
9b8a03b53b
commit
27bf244b3b
@ -82,9 +82,7 @@ const PluginTypeSwitch = ({
|
|||||||
}, [showSearchParams, handleActivePluginTypeChange])
|
}, [showSearchParams, handleActivePluginTypeChange])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.addEventListener('popstate', () => {
|
window.addEventListener('popstate', handlePopState)
|
||||||
handlePopState()
|
|
||||||
})
|
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('popstate', handlePopState)
|
window.removeEventListener('popstate', handlePopState)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user