diff --git a/src/views/Discover/index.vue b/src/views/Discover/index.vue index e7463bc..2a58fcc 100644 --- a/src/views/Discover/index.vue +++ b/src/views/Discover/index.vue @@ -368,10 +368,7 @@ export default { 'background-color': 'data(backgroundColor)', 'border-color':'data(bordercolor)', 'border-width': function(node) { - if(node.data("type") == "activity"){ - return "1" - } - return "2" + node.data('type') === 'activity' ? '1' : '2'; }, //'border-radius': '5', 'shape':'data(shape)', @@ -383,10 +380,7 @@ export default { 'width': 'data(width)', 'color': '#001933', 'font-size':function(node) { - if(node.data("type") == "activity"){ - return 14 - } - return 22 + node.data('type') === 'activity' ? 14 : 22; }, }, },