Commit 18b2b3c8 by LJM

商品管理/商品列表:分类无数据

parent be254514
Showing with 5 additions and 2 deletions
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
getClass() { getClass() {
this.$http('get', "/api/class/get_class_list", {}).then(res => { this.$http('get', "/api/class/get_class_list", {}).then(res => {
if (res.code === 0) { if (res.code === 0) {
var arr_ = res.data || [] var arr_ = res.data.list || []
for (var i = 0; i < arr_.length; i++) { for (var i = 0; i < arr_.length; i++) {
var children_arr = [] var children_arr = []
var arr_2 = arr_[i].sub_class || [] var arr_2 = arr_[i].sub_class || []
...@@ -142,7 +142,10 @@ export default { ...@@ -142,7 +142,10 @@ export default {
}) })
} }
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment