Skip to content

Commit

Permalink
fix(card): fix some undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqVictor committed Sep 25, 2023
1 parent 43dbd38 commit 475c9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MirrorCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<svg
class="iconfont"
:style="isMouseOver?{filter:'unset'}:{}">
<use :xlink:href="infoMapAfter[name]['icon']?'#'+infoMapAfter[name]['icon']:type?'#icon-mirror':'#icon-proxy'" />
<use :xlink:href="(infoMapAfter[name ?? '']?.icon)?'#'+ (infoMapAfter[name ?? '']?.icon) :type?'#icon-mirror':'#icon-proxy'" />
</svg>
</div>
<div class="detail-left">
Expand All @@ -30,7 +30,7 @@
<span v-if="size!=='unknown'" class="size-num">{{ size }}</span>
<span v-else class="size-num" />
<svg
v-if="infoMap[name]['help']!==undefined"
v-if="infoMap[name ?? '']?.help!==undefined"
id="i-howto"
class="iconfont icon-i"
@click.stop="jumpHelpUrl">
Expand Down

0 comments on commit 475c9a3

Please sign in to comment.