Просмотр исходного кода

bug fix: 企业翻翻看 重玩时需要把所有牌的翻面状态重置。

任一存 1 год назад
Родитель
Сommit
f2f1b530c7
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      game/src/views/PairUp.vue

+ 6 - 2
game/src/views/PairUp.vue

@@ -253,8 +253,14 @@ const logoFileNameList = [
   '中证数据有限责任公司.png',
   '朱雀基金管理有限公司.png',
 ]
+
+const activeCardIdxList = ref([])
+const activeCardIdxListRealTime = ref([])
 const cardList = ref([])
+
 function setCardList() {
+  activeCardIdxList.value = []
+  activeCardIdxListRealTime.value = []
   cardList.value = []
   nextTick(() => {
     for (let index = 0; index < 8; index++) {
@@ -275,8 +281,6 @@ function setCardList() {
 }
 setCardList()
 
-const activeCardIdxList = ref([])
-const activeCardIdxListRealTime = ref([])
 function onClickCard(card, cardIdx) {
   if (activeCardIdxList.value.includes(cardIdx)) {
     return