Update edit-archive.vue
This commit is contained in:
parent
f7a0e9454c
commit
266db3cfa4
@ -190,6 +190,7 @@ async function init() {
|
||||
await getCustomer();
|
||||
} else {
|
||||
const res = await getArchives();
|
||||
console.log('res:', res)
|
||||
if (res.length > 0) {
|
||||
visible.value = true;
|
||||
}
|
||||
@ -204,13 +205,9 @@ async function init() {
|
||||
|
||||
async function getArchives() {
|
||||
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' });
|
||||
if (res && res.success) {
|
||||
corpName.value = res.corpName;
|
||||
customers.value = Array.isArray(res.data) ? res.data : [];
|
||||
} else {
|
||||
// toast(res?.message || '查询档案信息失败');
|
||||
}
|
||||
return []
|
||||
customers.value = res && Array.isArray(res.data) ? res.data : [];
|
||||
corpName.value = res && res.corpName ? res.corpName : '';
|
||||
return customers.value
|
||||
}
|
||||
|
||||
async function getBaseForm() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user