修正圣遗物无套装时可能导致的报错

This commit is contained in:
Kokomi 2022-11-12 23:01:24 +08:00
parent 089b8dbefe
commit 53c88dbd82
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export default class ProfileArtis extends Base {
names, names,
imgs, imgs,
abbrs: [...abbrs, ...abbrs2], abbrs: [...abbrs, ...abbrs2],
name: (abbrs.length > 1 || abbrs2[0].length > 7) ? abbrs.join('+') : abbrs2[0], name: (abbrs.length > 1 || abbrs2[0]?.length > 7) ? abbrs.join('+') : abbrs2[0],
sName: abbrs.join('+') sName: abbrs.join('+')
} }
return this._setData return this._setData

View File

@ -75,7 +75,7 @@
</div> </div>
<div class="char-info weapon-info"> <div class="char-info weapon-info">
<div class="name"> <div class="name">
<strong> {{w.name.length > 4 ? (w.abbr||w.name) : w.name}}</strong> <strong> {{w.name?.length > 4 ? (w.abbr||w.name) : w.name}}</strong>
</div> </div>
<div class="info"> <div class="info">
<span class="cons cons-{{w.affix+1}}">精{{w.affix}}</span> Lv.{{w.leve || w.level}} <span class="cons cons-{{w.affix+1}}">精{{w.affix}}</span> Lv.{{w.leve || w.level}}