fix: 代码优化

This commit is contained in:
黄泽群
2026-07-22 15:48:18 +08:00
parent c764781fff
commit a971f06267
8 changed files with 46 additions and 19 deletions
@@ -128,7 +128,11 @@ export default {
onItemSelect(item,xItem){
this.curSelectList.push(xItem);
this.curSelect++;
this.getAddressList(xItem.id);
this.getAddressList(xItem.id).then(() => {
if (!this.addressList.length) {
this.onOk();
}
});
},
onSelect(item,index){
this.curSelectList.splice(index + 1);
@@ -417,4 +421,4 @@ export default {
};
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped></style>