feat: 🚀 修复bug

This commit is contained in:
2025-12-22 09:50:35 +08:00
parent 1f5867b568
commit 0881897885
3 changed files with 12 additions and 2 deletions

BIN
dist.zip

Binary file not shown.

View File

@@ -136,13 +136,18 @@ const treeProps = {
value: "value" value: "value"
}; };
//产品分类(后端大佬说直接掉列表接口) //banner分类
const getProductCategoryList = async () => { const getProductCategoryList = async () => {
const result = await getProductCategoryListApi(); const result = await getProductCategoryListApi();
if (result?.code === 0) { if (result?.code === 0) {
let dataClone: any = cloneDeep(result?.data); let dataClone: any = cloneDeep(result?.data);
console.log(dataClone, "=dataClone="); console.log(dataClone, "=dataClone=");
dataStore.editFormData[7].options = addLabelValue(dataClone); dataStore.editFormData.forEach((item: any) => {
if (item.prop === "rel_prod_cate_id") {
item.options = addLabelValue(dataClone);
}
});
// dataStore.editFormData[8].options = addLabelValue(dataClone);
} }
}; };

View File

@@ -167,6 +167,11 @@ const getProductCategoryUpdate = async () => {
dataStore.visible = false; dataStore.visible = false;
resetFrom(); resetFrom();
getProductCategoryList(); getProductCategoryList();
console.log("走的进来吗");
} else {
dataStore.ruleForm.related_tco_category = dataStore.ruleForm.related_tco_category
.split(",")
.map((item: any) => Number(item));
} }
}; };
//产品详情 //产品详情