Update edit-archive.vue

This commit is contained in:
huxuejian 2026-04-15 13:14:41 +08:00
parent f7a0e9454c
commit 266db3cfa4

View File

@ -190,6 +190,7 @@ async function init() {
await getCustomer(); await getCustomer();
} else { } else {
const res = await getArchives(); const res = await getArchives();
console.log('res:', res)
if (res.length > 0) { if (res.length > 0) {
visible.value = true; visible.value = true;
} }
@ -204,13 +205,9 @@ async function init() {
async function getArchives() { async function getArchives() {
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' }); const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' });
if (res && res.success) { customers.value = res && Array.isArray(res.data) ? res.data : [];
corpName.value = res.corpName; corpName.value = res && res.corpName ? res.corpName : '';
customers.value = Array.isArray(res.data) ? res.data : []; return customers.value
} else {
// toast(res?.message || '');
}
return []
} }
async function getBaseForm() { async function getBaseForm() {