From 31677fb1fdbacdb3afb9f951485dea566b16365a Mon Sep 17 00:00:00 2001 From: youngS Date: Mon, 13 Sep 2021 18:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/apps/FirApps.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fir_client/src/components/apps/FirApps.vue b/fir_client/src/components/apps/FirApps.vue index 8cdb1ef..ce7f609 100644 --- a/fir_client/src/components/apps/FirApps.vue +++ b/fir_client/src/components/apps/FirApps.vue @@ -706,8 +706,11 @@ this.show_buy_download_times = true; this.data_package_prices = res.data; this.pay_choices = res.pay_choices; - if (this.pay_choices) { - this.default_pay_radio = this.pay_choices[0].name + if (this.pay_choices && this.pay_choices.length > 0) { + this.default_pay_radio = this.pay_choices[0].name; + } + if (this.data_package_prices && this.data_package_prices.length > 0) { + this.default_price_radio = this.data_package_prices[parseInt(this.data_package_prices.length / 2)].name; } } else { this.$message.error("获取价格异常");