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(); + } }); }, /** 加载会员名列表 */