Browse Source

optimize: 测速超过250ms的,显示为黄色。

pull/384/head
王良 4 weeks ago
parent
commit
8dc5cfc37c
  1. 2
      packages/gui/src/view/pages/server.vue
  2. 6
      packages/gui/src/view/style/theme/dark.scss

2
packages/gui/src/view/pages/server.vue

@ -211,7 +211,7 @@
<a-icon v-else type="info-circle"/>
</a>
<a-tag style="margin:2px;" v-for="(element,index) of item.backupList" :title="element.dns"
:color="element.time?'green':'red'" :key='index'>
:color="element.time?(element.time>250?'orange':'green'):'red'" :key='index'>
{{ element.host }} {{ element.time }}{{ element.time ? 'ms' : '' }} {{ element.dns }}
</a-tag>
</a-card>

6
packages/gui/src/view/style/theme/dark.scss

@ -122,6 +122,12 @@ $dark-input: #777; //输入框:背景色
border-color: #505f5f;
color: #90cb9f;
}
/* 标签:警告 */
.ant-tag-orange{
background: #62605e;
border-color: #62605e;
color: #e7aa61;
}
/* 按钮 */
.ant-btn:not(.ant-btn-danger, .ant-btn-primary){

Loading…
Cancel
Save