🐳 chore(eslint): 修正所有文件的eslint 错误❌

This commit is contained in:
xuan
2022-11-28 11:06:15 +08:00
parent 99a920975f
commit cc99111b4f
149 changed files with 3270 additions and 3252 deletions
+4 -5
View File
@@ -35,16 +35,15 @@ const CustomTabBar: FC = () => {
console.log('selectedId', selectedId)
const dispatch = useDispatch<Dispatch<TabBarAction>>()
const setSelected = (id: TabBarIndexMap[number]['id']) => {
dispatch({ type: TabBarType.SET_SELECTED, data: { tabItem, selectedId: id } })
}
const handleSelectTabItem = (id: TabBarIndexMap[number]['id']) => {
return () => {
setSelected(id)
Taro.switchTab({ url: tabItem?.find(item => item.id === id)?.pagePath! })
Taro.switchTab({ url: tabItem?.find(item => item.id === id)?.pagePath as string })
}
}
const setSelected = (id: TabBarIndexMap[number]['id']) => {
dispatch({ type: TabBarType.SET_SELECTED, data: { tabItem, selectedId: id } })
}
return (
<View className={styles.customTabBar}>