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