From 5cd874a413965b9915d8ab0d901a3cc04a828a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E9=A3=8E?= <18012261618@126.com> Date: Wed, 3 Jan 2024 16:45:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E5=8C=BA=E9=80=89=E6=8B=A9--?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=BB=91=E5=AE=9A=E6=97=B6=E9=87=8D=E7=BD=AE?= =?UTF-8?q?getTitle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/area/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/area/index.js b/src/area/index.js index d8c97193f..5d5f90800 100644 --- a/src/area/index.js +++ b/src/area/index.js @@ -190,7 +190,10 @@ export default createComponent({ this.getTitle = this.value; return; } - if (!this.value && !this.code) return ''; + if (!this.value && !this.code) { + this.getTitle = ''; + return; + } // 有转换器的时候,需要用 code const tcode = this.value && this.converter !== 'name' ? this.value : this.code;