whao %!s(int64=2) %!d(string=hai) anos
pai
achega
7485efcfb6
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      src/views/datacenter.vue

+ 0 - 2
src/views/datacenter.vue

@@ -279,8 +279,6 @@ export default {
         console.log("that.resourcesList=", 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("data.type.split('_').slice(-1)", data.type.split('_').slice(-1));
           that.$set(that.resourcesList[index], 'icon', 'sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-"));
         })
       })