浏览代码

keep add and remove the same (#25277)

tags/2.0.0-beta.2^2
Asuka Minato 1 个月前
父节点
当前提交
27bf244b3b
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      web/app/components/plugins/marketplace/plugin-type-switch.tsx

+ 1
- 3
web/app/components/plugins/marketplace/plugin-type-switch.tsx 查看文件

@@ -82,9 +82,7 @@ const PluginTypeSwitch = ({
}, [showSearchParams, handleActivePluginTypeChange])

useEffect(() => {
window.addEventListener('popstate', () => {
handlePopState()
})
window.addEventListener('popstate', handlePopState)
return () => {
window.removeEventListener('popstate', handlePopState)
}

正在加载...
取消
保存