修正了current的拼写错误

This commit is contained in:
Peisheng Li 2020-08-27 15:33:36 +08:00
parent ac3df68679
commit e5d2ba5d94
2 changed files with 4 additions and 4 deletions

View File

@ -194,10 +194,10 @@ class ServerManager extends EventEmitter {
// 从缓存中获取玩家数量
const mcpingResult = mcPingProtocol.QueryMCPingTask(k);
if (mcpingResult) {
returnData.currnetPlayers = mcpingResult.current_players;
returnData.currentPlayers = mcpingResult.current_players;
returnData.maxPlayers = mcpingResult.max_players;
} else {
returnData.currnetPlayers = '--';
returnData.currentPlayers = '--';
returnData.maxPlayers = '--';
}
// 准备发送给前端的服务端集合数据

View File

@ -48,7 +48,7 @@
<span v-text="item.serverName"></span>
<span class="AppInlineBlockListTitleTip "><span class="FontGray">自定义</span></span>
<span class="AppInlineBlockListTitlePlayer">
<span v-text="item.data.currnetPlayers"></span>
<span v-text="item.data.currentPlayers"></span>
/
<span v-text="item.data.maxPlayers"></span>
</span>
@ -57,7 +57,7 @@
<span v-text="item.serverName"></span>
<span class="AppInlineBlockListTitleTip"><span class="FontGray">普通</span></span>
<span class="AppInlineBlockListTitlePlayer">
<span v-text="item.data.currnetPlayers"></span>
<span v-text="item.data.currentPlayers"></span>
/
<span v-text="item.data.maxPlayers"></span>
</span>