refactor: 优化多个组件的返回逻辑
- 在 Requirement、Summary、Fund 组件中,将 history.back() 替换为 router.push(),以指定具体的路由名称- 在 ProjectApply 组件中,根据 step 值选择不同的路由页面 - 这些修改提高了组件的可测试性和灵活性,避免了依赖浏览器历史记录
This commit is contained in:
@@ -234,7 +234,9 @@ const getFile = (val) => {
|
||||
})
|
||||
}
|
||||
const handleBack = () => {
|
||||
history.back()
|
||||
router.push({
|
||||
name: 'Fund'
|
||||
})
|
||||
}
|
||||
|
||||
const submitParam = (item) => {
|
||||
|
||||
Reference in New Issue
Block a user