已结项项目返回到已结项项目列表

main
wuyize 2022-07-14 11:18:36 +08:00
parent e8bfb7361f
commit 9fd2b1d847
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ export default {
this.getProjectInfo(); this.getProjectInfo();
}, },
back() { back() {
router.push({path: '/'}) if(this.project.completed===true)
router.push({path: '/project/closed'})
else
router.push({path: '/'})
}, },
getStaffFullname() { getStaffFullname() {
return this.$store.state.staff === null ? ' ' : this.$store.state.staff.staffFullname return this.$store.state.staff === null ? ' ' : this.$store.state.staff.staffFullname