From fe0605a22f19e4a0ae8ddd903d97108b64726a57 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Wed, 22 Dec 2021 13:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=E8=B4=A7?= =?UTF-8?q?=E5=B8=81=E9=BB=98=E8=AE=A4=E5=80=BC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index 13f56c59..d3489717 100644 --- a/App.vue +++ b/App.vue @@ -827,8 +827,21 @@ } } } + } + // 默认值 + if(value == null && default_value != undefined) { + value = default_value; + } + // 无数据则处理自定义字段定义的数据 + if(value == null) { + switch(key) { + // 货币符号 + case 'currency_symbol' : + value = this.data.currency_symbol; + break; + } } - return value === null ? default_value === undefined ? value : default_value : value; + return value; }, // 初始化 配置信息