mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
✏️ 修正最深抵达描述计算逻辑
This commit is contained in:
@@ -94,12 +94,7 @@
|
||||
<div class="uaw-o-box">
|
||||
<TuaOverview :val-text="item.totalBattleTimes" title="战斗次数" />
|
||||
<TuaOverview :val-text="item.totalStar" title="获得渊星" />
|
||||
<TuaOverview
|
||||
:val-text="
|
||||
item.skippedFloor !== '' ? `${item.maxFloor}(${item.skippedFloor})` : item.maxFloor
|
||||
"
|
||||
title="最深抵达"
|
||||
/>
|
||||
<TuaOverview :val-text="getMaxFloor(item)" title="最深抵达" />
|
||||
<TuaOverview :val-icons="item.defeatRank" title="最多击破" />
|
||||
<TuaOverview :val-icons="item.takeDamageRank" title="最多承伤" />
|
||||
<TuaOverview :val-icons="item.damageRank" title="最强一击" />
|
||||
@@ -175,6 +170,13 @@ watch(
|
||||
async () => await reloadUid(),
|
||||
);
|
||||
|
||||
function getMaxFloor(abyss: TGApp.Sqlite.Abyss.TableTrans): string {
|
||||
if (abyss.skippedFloor !== null && abyss.skippedFloor !== "") {
|
||||
return `${abyss.maxFloor}(${abyss.skippedFloor})`;
|
||||
}
|
||||
return `${abyss.maxFloor}`;
|
||||
}
|
||||
|
||||
async function reloadUid(uid?: string): Promise<void> {
|
||||
uidList.value = await TSUserAbyss.getAllUid();
|
||||
if (uidList.value.length === 0) uidList.value = [account.value.gameUid];
|
||||
|
||||
Reference in New Issue
Block a user