Skip to content

Commit

Permalink
fix: 地区选择--清空绑定时重置getTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
YufJi committed Jan 10, 2024
1 parent 0061fc2 commit 5cd874a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/area/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5cd874a

Please sign in to comment.