fix: 修改新建项目id错误问题

This commit is contained in:
奔跑的面条 2022-05-21 21:04:10 +08:00
parent c754a36ee5
commit a4e18f8893

View File

@ -100,7 +100,7 @@ const btnHandle = async (key: string) => {
if(res.code === ResultEnum.SUCCESS) {
window['$message'].success(window['$t']('project.create_success'))
const { id } = res
const { id } = res.data
const path = fetchPathByName(ChartEnum.CHART_HOME_NAME, 'href')
routerTurnByPath(path, [id], undefined, true)
closeHandle()