fix
This commit is contained in:
parent
d81069a140
commit
0722c8fada
|
@ -735,16 +735,28 @@ export default class GachaLog extends base {
|
||||||
let line = []
|
let line = []
|
||||||
let weapon = this.e.isSr ? "光锥" : "武器"
|
let weapon = this.e.isSr ? "光锥" : "武器"
|
||||||
//最非,最欧
|
//最非,最欧
|
||||||
const filteredFiveLog = data.fiveLog.filter(item => item.num !== 0);
|
|
||||||
let maxValue, minValue;
|
let maxValue, minValue;
|
||||||
|
|
||||||
if (filteredFiveLog.length > 0) {
|
if (data && data.fiveLog) {
|
||||||
maxValue = Math.max(...filteredFiveLog.map(item => item.num));
|
const filteredFiveLog = data.fiveLog.filter(item => item.num !== 0);
|
||||||
minValue = Math.min(...filteredFiveLog.map(item => item.num));
|
|
||||||
|
if (filteredFiveLog.length > 0) {
|
||||||
|
maxValue = Math.max(...filteredFiveLog.map(item => item.num));
|
||||||
|
minValue = Math.min(...filteredFiveLog.map(item => item.num));
|
||||||
|
} else {
|
||||||
|
if (data.fiveLog[0]) {
|
||||||
|
maxValue = data.fiveLog[0];
|
||||||
|
minValue = data.fiveLog[0];
|
||||||
|
} else {
|
||||||
|
maxValue = 0;
|
||||||
|
minValue = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
maxValue = fiveLog[0].num;
|
maxValue = 0;
|
||||||
minValue = fiveLog[0].num;
|
minValue = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([301, 11].includes(type)) {
|
if ([301, 11].includes(type)) {
|
||||||
line = [[
|
line = [[
|
||||||
{ lable: "未出五星", num: data.noFiveNum, unit: "抽" },
|
{ lable: "未出五星", num: data.noFiveNum, unit: "抽" },
|
||||||
|
|
Loading…
Reference in New Issue