mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-26 15:31:41 +08:00
fix: 修改新建项目id错误问题
This commit is contained in:
parent
61feb29fe2
commit
8514f051a7
@ -100,7 +100,7 @@ const btnHandle = async (key: string) => {
|
|||||||
if(res.code === ResultEnum.SUCCESS) {
|
if(res.code === ResultEnum.SUCCESS) {
|
||||||
window['$message'].success(window['$t']('project.create_success'))
|
window['$message'].success(window['$t']('project.create_success'))
|
||||||
|
|
||||||
const { id } = res
|
const { id } = res.data
|
||||||
const path = fetchPathByName(ChartEnum.CHART_HOME_NAME, 'href')
|
const path = fetchPathByName(ChartEnum.CHART_HOME_NAME, 'href')
|
||||||
routerTurnByPath(path, [id], undefined, true)
|
routerTurnByPath(path, [id], undefined, true)
|
||||||
closeHandle()
|
closeHandle()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user