Skip to content

Commit

Permalink
optimize: 测速超过250ms的,显示为黄色。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Oct 24, 2024
1 parent a1c8ee0 commit 8dc5cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gui/src/view/pages/server.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions packages/gui/src/view/style/theme/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 8dc5cfc

Please sign in to comment.