fix: 优化 spu 相关路由配置

This commit is contained in:
puhui999
2023-06-03 21:21:43 +08:00
parent 91a5f8044c
commit a1b45f80bc
2 changed files with 6 additions and 6 deletions

View File

@ -397,18 +397,18 @@ const resetQuery = () => {
const openForm = (id?: number) => {
// 修改
if (typeof id === 'number') {
push('/product/productSpuEdit/' + id)
push('/product/spu/edit/' + id)
return
}
// 新增
push('/product/productSpuAdd')
push('/product/spu/add')
}
/**
* 查看商品详情
*/
const openDetail = (id?: number) => {
push('/product/productSpuDetail/' + id)
push('/product/spu/detail/' + id)
}
/** 导出按钮操作 */