Browse Source

optimize: 慢速IP的时间可配置化。

build-arm64
王良 2 weeks ago
parent
commit
10d75a49a3
  1. 5
      packages/core/src/config/index.js
  2. 2
      packages/gui/src/view/pages/server.vue

5
packages/core/src/config/index.js

@ -65,7 +65,10 @@ module.exports = {
timeout: 20000,
keepAliveTimeout: 30000
}
}
},
// 慢速IP延迟时间:测速超过该值时,则视为延迟高,显示为橙色
lowSpeedDelay: 150
},
compatible: {
// **** 自定义兼容配置 **** //

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?(element.time>200?'orange':'green'):'red'" :key='index'>
:color="element.time?(element.time>config.server.setting.lowSpeedDelay?'orange':'green'):'red'" :key='index'>
{{ element.host }} {{ element.time }}{{ element.time ? 'ms' : '' }} {{ element.dns }}
</a-tag>
</a-card>

Loading…
Cancel
Save