mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 20:47:17 +00:00
Perf: Some change
This commit is contained in:
@@ -112,7 +112,7 @@ export default {
|
||||
let filteredData = []
|
||||
|
||||
// 只要有一个大于零 则展示全部的
|
||||
if (data.some(item => item.value > 0).length > 0) {
|
||||
if (data.some(item => item.value > 0)) {
|
||||
filteredData = data
|
||||
} else {
|
||||
filteredData = data.slice(0, 7)
|
||||
@@ -135,7 +135,6 @@ export default {
|
||||
show: true,
|
||||
min: 0,
|
||||
max: max,
|
||||
interval: 1,
|
||||
position: 'top',
|
||||
axisLine: { show: false },
|
||||
axisTick: { show: false },
|
||||
|
@@ -14,13 +14,17 @@
|
||||
</two-col>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
<div class="copy-btn">
|
||||
<i
|
||||
class="copy-btn el-icon-copy-document"
|
||||
@click="copyContent"
|
||||
/>
|
||||
<el-tooltip :content="$t('Copy')" placement="top">
|
||||
<i
|
||||
class="copy-btn el-icon-copy-document"
|
||||
@click="copyContent"
|
||||
/>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</IBox>
|
||||
</div>
|
||||
</template>
|
||||
@@ -129,5 +133,6 @@ export default {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user