Skip to content

Commit

Permalink
升级 reduxå 原版 到 clean redudants
Browse files Browse the repository at this point in the history
  • Loading branch information
tearf001 committed Mar 16, 2022
1 parent e4edeb3 commit 5eabf16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/store/slicers/tabSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ export const { setTabs, setCurrentTab, setReloadPath } = tabSlice.actions
// The function below is called a selector and allows us to select a value from
// the state. Selectors can also be defined inline where they're used instead of
// in the slice file. For example: `useSelector((state: RootState) => state.counter.value)`
export const selectTabs = (state: RootState) => {
debugger
return state.tab.curTab
}
export const selectTabs = (state: RootState) => state.tab.curTab
export const selectCurrentTab = (state: RootState) => state.tab.currentTab
export const selectReloadPath = (state: RootState) => state.tab.reloadPath

Expand Down

0 comments on commit 5eabf16

Please sign in to comment.