Skip to content

Commit

Permalink
fix: del project error
Browse files Browse the repository at this point in the history
  • Loading branch information
xsteadybcgo committed Aug 27, 2021
1 parent 30af3db commit e045a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ const Projects: FC<{}> = () => {
apiDelProject({ id: projectInfo[tabNum].id }).then(
() => {
message.success(t('tip.delete'))
setTabNum(tabNum - 1 > 0 ? tabNum - 1 : 0)
updatePageData()
updateMenu()
updateUser()
// 更新页面数据
},
(res) => {
() => {
message.success(t('tip.fail'))
}
)
Expand Down

0 comments on commit e045a26

Please sign in to comment.