代码优化

This commit is contained in:
GaoHao
2025-03-26 17:18:49 +08:00
parent 656793dae2
commit 5a655ba09e
9 changed files with 6 additions and 15 deletions

View File

@@ -181,7 +181,6 @@
*/
async function getGroupBindGoods() {
let res = await getProdGroupDetail(option.id)
console.log(res)
pageData.bindGoodsList = res.productList.filter(v=>{
return pageData.query.categoryId === '' ? true : (v.categoryId==pageData.query.categoryId)&&(v.name.includes(pageData.query.name))
})
@@ -209,7 +208,6 @@
*/
function setCategory(category) {
pageData.query.categoryId = category.id
console.log(pageData.query.categoryId );
pageData.categoryName = category.name
}
@@ -221,7 +219,6 @@
if (!res) {
return
}
console.log(pageData.goodsList);
await updateProdGroup({
...option,
productIds: [...pageData.bindGoodsList.map(v => v.id), ...pageData.goodsList.filter(v => v.checked)