Skip to content

最近在学习,react, 刚好在b站看到的项目预览,功能非常全。感谢你的开源,嘿嘿 #3

@lxy157

Description

@lxy157

./src/pages/discover/child-pages/songs/index.js

useEffect(() => {
dispatch(changeCurrentCategoryAction(albumName || cat))
}, [dispatch, cat, albumName])

把下面这里改一下

useEffect(() => {
const name = albumName || cat
if (name) {
dispatch(changeCurrentCategoryAction(name))
}
}, [dispatch, cat, albumName])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions