This commit is contained in:
Leo
2026-02-05 12:11:28 +08:00
parent 7a39dd32cf
commit 9794bec2ae

View File

@@ -396,7 +396,6 @@ export default {
}, },
created() { created() {
this.loadERPAccounts(); this.loadERPAccounts();
// 不自动加载列表,等用户选择账号后再加载
}, },
methods: { methods: {
/** 查询闲鱼商品列表 */ /** 查询闲鱼商品列表 */
@@ -420,6 +419,11 @@ export default {
loadERPAccounts() { loadERPAccounts() {
getERPAccounts().then(response => { getERPAccounts().then(response => {
this.erpAccountList = response.data || []; this.erpAccountList = response.data || [];
// 自动将第一个ERP账号作为参数并调用列表数据
if (this.erpAccountList.length > 0 && !this.queryParams.appid) {
this.queryParams.appid = this.erpAccountList[0].value;
this.getList();
}
}); });
}, },
/** 加载会员名列表 */ /** 加载会员名列表 */