From 00bb9d10037a70b5a4421734339b3783e4e8cbca Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 23 Nov 2021 14:30:21 +0800 Subject: [PATCH] add symbol on button --- src/views/components/KlineTrade/PlaceForm.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/components/KlineTrade/PlaceForm.vue b/src/views/components/KlineTrade/PlaceForm.vue index 054946bb..3d830026 100644 --- a/src/views/components/KlineTrade/PlaceForm.vue +++ b/src/views/components/KlineTrade/PlaceForm.vue @@ -92,7 +92,7 @@ block :variant="type === 0 ? 'success': 'danger'" > - {{ type === 0 ? 'Buy' : 'Sell' }} + {{ type === 0 ? `Buy ${ base }` : `Sell ${ base }` }} x.chain === this.$route.params.chain) + if (addrs && addrs.length > 0) { + array = array.concat(addrs.map(x => ({ value: x.addr, label: values[i].name.concat(' - ', abbrAddress(x.addr)) }))) + } + } + return array + }, }, methods: { changeAmount() {