【代码优化】商城:拼团装修重构

This commit is contained in:
YunaiV
2024-09-06 20:55:08 +08:00
parent a2091df2df
commit 7d60b5a619
6 changed files with 11 additions and 28 deletions

View File

@ -85,6 +85,7 @@ const openSpuTableSelect = () => {
/**
* 选择商品后触发
*
* @param spus 选中的商品列表
*/
const handleSpuSelected = (spus: ProductSpuApi.Spu | ProductSpuApi.Spu[]) => {
@ -94,6 +95,7 @@ const handleSpuSelected = (spus: ProductSpuApi.Spu | ProductSpuApi.Spu[]) => {
/**
* 删除商品
*
* @param index 商品索引
*/
const handleRemoveSpu = (index: number) => {