添加商品选择分类问题修复

This commit is contained in:
macro 2019-10-07 16:40:07 +08:00
parent 0b77ed571b
commit dfaec3b364

View File

@ -159,7 +159,7 @@
getCateNameById(id){ getCateNameById(id){
let name=null; let name=null;
for(let i=0;i<this.productCateOptions.length;i++){ for(let i=0;i<this.productCateOptions.length;i++){
for(let j=0;i<this.productCateOptions[i].children.length;j++){ for(let j=0;j<this.productCateOptions[i].children.length;j++){
if(this.productCateOptions[i].children[j].value===id){ if(this.productCateOptions[i].children[j].value===id){
name=this.productCateOptions[i].children[j].label; name=this.productCateOptions[i].children[j].label;
return name; return name;