diff --git a/src/components/market/NftDetail.vue b/src/components/market/NftDetail.vue index cce8f6a..7a6f974 100644 --- a/src/components/market/NftDetail.vue +++ b/src/components/market/NftDetail.vue @@ -44,27 +44,27 @@
HP
-
{{nftData.attrMap.get('hp')}}
+
{{attr('hp')}}
Speed
-
{{nftData.attrMap.get('speed')}}
+
{{attr('speed')}}
Attack
-
{{nftData.attrMap.get('atk')}}
+
{{attr('atk')}}
Defence
-
{{nftData.attrMap.get('def')}}
+
{{attr('def')}}
Advanced Count
-
{{nftData.attrMap.get('advanced_count')}}
+
{{attr('advanced_count')}}
@@ -82,37 +82,37 @@
Attack
-
{{nftData.attrMap.get('atk')}}
+
{{attr('atk')}}
Clip
-
{{nftData.attrMap.get('clip_volume')}}
+
{{attr('clip_volume')}}
Reload
-
{{nftData.attrMap.get('reload_time')}}
+
{{attr('reload_time')}}
Rate
-
{{nftData.attrMap.get('fire_rate')}}
+
{{attr('fire_rate')}}
Speed
-
{{nftData.attrMap.get('bullet_speed')}}
+
{{attr('bullet_speed')}}
Range
-
{{nftData.attrMap.get('range')}}
+
{{attr('range')}}
-
+
Advanced Count
-
{{nftData.attrMap.get('advanced_count')}}
+
{{attr('advanced_count')}}
@@ -121,7 +121,7 @@
-
+
@@ -131,11 +131,11 @@
Lucky
-
{{nftData.attrMap.get('lucky')}}
+
{{attr('lucky')}}
Success Rate
-
{{nftData.attrMap.get('success_rate')}}
+
{{attr('success_rate')}}
@@ -234,6 +234,14 @@ export default class extends Vue { back() { this.$router.go(-1) } + + attr(key: string) { + return this.nftData.attrMap.get(key) + } + + hasAttr(key: string) { + return this.nftData?.attrMap?.has(key) + } }