|
@@ -297,12 +297,12 @@ export default {
|
|
|
//获取左侧菜单列表
|
|
|
getResource().then(res => {
|
|
|
that.resourcesList = res.data
|
|
|
+ console.log("数据中心", that.resourcesList)
|
|
|
//截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
|
|
|
res.data.forEach(function(data, index) {
|
|
|
that.$set(that.resourcesList[index], 'icon', 'sj' + '-' + 'icon' + '-' + data
|
|
|
.resourceTable.split('_').slice(-1))
|
|
|
})
|
|
|
- console.log(that.resourcesList)
|
|
|
|
|
|
})
|
|
|
},
|