feat: 🚀 修复bug
This commit is contained in:
@@ -136,13 +136,18 @@ const treeProps = {
|
||||
value: "value"
|
||||
};
|
||||
|
||||
//产品分类(后端大佬说直接掉列表接口)
|
||||
//banner分类
|
||||
const getProductCategoryList = async () => {
|
||||
const result = await getProductCategoryListApi();
|
||||
if (result?.code === 0) {
|
||||
let dataClone: any = cloneDeep(result?.data);
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -167,6 +167,11 @@ const getProductCategoryUpdate = async () => {
|
||||
dataStore.visible = false;
|
||||
resetFrom();
|
||||
getProductCategoryList();
|
||||
console.log("走的进来吗");
|
||||
} else {
|
||||
dataStore.ruleForm.related_tco_category = dataStore.ruleForm.related_tco_category
|
||||
.split(",")
|
||||
.map((item: any) => Number(item));
|
||||
}
|
||||
};
|
||||
//产品详情
|
||||
|
||||
Reference in New Issue
Block a user