mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +00:00
修正圣遗物无套装时可能导致的报错
This commit is contained in:
parent
089b8dbefe
commit
53c88dbd82
@ -170,7 +170,7 @@ export default class ProfileArtis extends Base {
|
||||
names,
|
||||
imgs,
|
||||
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('+')
|
||||
}
|
||||
return this._setData
|
||||
|
@ -75,7 +75,7 @@
|
||||
</div>
|
||||
<div class="char-info weapon-info">
|
||||
<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 class="info">
|
||||
<span class="cons cons-{{w.affix+1}}">精{{w.affix}}</span> Lv.{{w.leve || w.level}}
|
||||
|
Loading…
Reference in New Issue
Block a user