From 9794bec2aed351f10419042971861e48aac10208 Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 5 Feb 2026 12:11:28 +0800 Subject: [PATCH] 1 --- src/views/system/erpProduct/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/system/erpProduct/index.vue b/src/views/system/erpProduct/index.vue index 9d89372..621ec48 100644 --- a/src/views/system/erpProduct/index.vue +++ b/src/views/system/erpProduct/index.vue @@ -396,7 +396,6 @@ export default { }, created() { this.loadERPAccounts(); - // 不自动加载列表,等用户选择账号后再加载 }, methods: { /** 查询闲鱼商品列表 */ @@ -420,6 +419,11 @@ export default { loadERPAccounts() { getERPAccounts().then(response => { this.erpAccountList = response.data || []; + // 自动将第一个ERP账号作为参数并调用列表数据 + if (this.erpAccountList.length > 0 && !this.queryParams.appid) { + this.queryParams.appid = this.erpAccountList[0].value; + this.getList(); + } }); }, /** 加载会员名列表 */