fix undefined length

This commit is contained in:
GM 2023-01-17 09:37:04 +00:00
parent 9e2b6263f2
commit 536ceead77

View File

@ -87,7 +87,7 @@ export default {
if (this.realCancelText == '') { if (this.realCancelText == '') {
this.realCancelText = this.$t('cancel') this.realCancelText = this.$t('cancel')
} }
if (this.cards.length == 1) { if (this.cards && this.cards.length == 1) {
this.showDesc(this.cards[0]) this.showDesc(this.cards[0])
} }
if (this.playAudio) { if (this.playAudio) {