fix: 问题修复

This commit is contained in:
huxuejian 2026-04-08 14:43:40 +08:00
parent 13fb1b8787
commit 517fec3f91
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
MP_API_BASE_URL=https://ykt.youcan365.com MP_API_BASE_URL=https://ykt.youcan365.com
MP_CACHE_PREFIX=production MP_CACHE_PREFIX=production
MP_WX_APP_ID=wx6ee11733526b4f04 MP_WX_APP_ID=wx6ee11733526b4f04
MP_TIM_SDK_APP_ID=1600123876 MP_TIM_SDK_APP_ID=1600136080
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg

View File

@ -203,15 +203,14 @@ 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) { if (res && res.success) {
corpName.value = res.corpName; corpName.value = res.corpName;
customers.value = Array.isArray(res.data) ? res.data : []; customers.value = Array.isArray(res.data) ? res.data : [];
} else { } else {
toast(res?.message || '查询档案信息失败'); // toast(res?.message || '');
return Promise.reject()
} }
return customers.value return []
} }
async function getBaseForm() { async function getBaseForm() {