From a228391ecc24cceca59cd827792c20c631040745 Mon Sep 17 00:00:00 2001 From: xxaaxx5566 <2719109211@qq.com> Date: Mon, 20 Jul 2026 15:36:45 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=B7=BB=E5=8A=A0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=92=8C=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=8F=8A=E7=9B=B8=E5=85=B3=E5=BF=BD?= =?UTF-8?q?=E7=95=A5=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 .env.development 文件,配置开发环境变量 - 新增 .env.production 文件,配置生产环境变量及压缩选项 - 添加 .gitignore 文件,忽略常见临时文件和本地配置 - 新增 .npmrc 文件,配置私有npm仓库及认证信息 - 新增 .prettierrc.json,配置代码格式化规则 - 添加 403 错误页面背景图 svg 文件至 public/img/bg/目录 --- src/views/base/common-address.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/base/common-address.vue b/src/views/base/common-address.vue index 6bfb5d5..72b2be8 100644 --- a/src/views/base/common-address.vue +++ b/src/views/base/common-address.vue @@ -306,8 +306,11 @@ export default { }, handleSourceChange(value) { const source = this.sourceOptions.find(item => item.sourceId === value); - if (!source) return; - this.form.addressName = this.form.addressName || source.addressName; + if (!source) { + this.resetTypeRelatedFields(); + return; + } + this.form.addressName = source.addressName; this.form.siteCode = source.siteCode; this.form.siteCodeDisplay = source.siteCode; this.form.detailAddress = source.detailAddress;