Parcourir la source

history用旧版方式显示

龚成明 il y a 3 ans
Parent
commit
9c67d33d1d
1 fichiers modifiés avec 10 ajouts et 5 suppressions
  1. 10 5
      src/components/viewer/Table.vue

+ 10 - 5
src/components/viewer/Table.vue

@@ -105,11 +105,16 @@
         </template>
         <!--tradeInfo-->
         <template v-slot:item.tradeInfo="{ item }">
-          <div class="tradeInfoBtn" @click="showTradeInfo(item)">
-            <v-chip v-for="tokenAddress in item.tokenAddressList"
-                    :color="item.tokenMap[tokenAddress] ? hashKit.generateColorByHash(tokenAddress) : undefined" class="tokenChip">
-              {{ item.tokenMap[tokenAddress] ? item.tokenMap[tokenAddress] : hashKit.headAndEnd2(tokenAddress) }}
-            </v-chip>
+          <div v-if="page.name === 'Pending Page'">
+            <div class="tradeInfoBtn" @click="showTradeInfo(item)">
+              <v-chip v-for="tokenAddress in item.tokenAddressList"
+                      :color="item.tokenMap[tokenAddress] ? hashKit.generateColorByHash(tokenAddress) : undefined" class="tokenChip">
+                {{ item.tokenMap[tokenAddress] ? item.tokenMap[tokenAddress] : hashKit.headAndEnd2(tokenAddress) }}
+              </v-chip>
+            </div>
+          </div>
+          <div v-else>
+            <TradeInfo :item="item"></TradeInfo>
           </div>
         </template>
       </v-data-table>