forked from mirror/MCSManager
修正了current的拼写错误
This commit is contained in:
parent
ac3df68679
commit
e5d2ba5d94
@ -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 = '--';
|
||||
}
|
||||
// 准备发送给前端的服务端集合数据
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user