修改易购页面显示undefined的bug
This commit is contained in:
parent
5218893ae7
commit
0c7b906afd
@ -301,8 +301,6 @@ export default {
|
|||||||
NavgateTo('1')
|
NavgateTo('1')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
changeCate(id) {
|
changeCate(id) {
|
||||||
this.checkItem(0)
|
this.checkItem(0)
|
||||||
// 更新当前选中的顶级分类ID
|
// 更新当前选中的顶级分类ID
|
||||||
@ -312,6 +310,7 @@ export default {
|
|||||||
if (category) {
|
if (category) {
|
||||||
// 将leftCateList设置为该分类的二级分类,若为null则设为空数组
|
// 将leftCateList设置为该分类的二级分类,若为null则设为空数组
|
||||||
this.leftCateList = category.level_two_category || [];
|
this.leftCateList = category.level_two_category || [];
|
||||||
|
this.tagList1 = category.level_three_category || [];
|
||||||
if (this.leftCateList.length > 0) {
|
if (this.leftCateList.length > 0) {
|
||||||
this.currentLeftCateId = this.leftCateList[0].id;
|
this.currentLeftCateId = this.leftCateList[0].id;
|
||||||
this.secondId = this.leftCateList[0].id;
|
this.secondId = this.leftCateList[0].id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user