fix: 优化 spu 相关路由配置

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

No files matched your search

+3 -3
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)
}
/** 导出按钮操作 */