优化
This commit is contained in:
@@ -101,7 +101,7 @@ export const useTenantAdministrationStore = defineStore('tenant-administration',
|
||||
company.value = {
|
||||
companyName: profile.tenantName,
|
||||
creditCode: profile.unifiedSocialCreditCode ?? '',
|
||||
legalRepresentative: profile.legalName,
|
||||
legalRepresentative: profile.legalRepresentative,
|
||||
contactName: profile.contactName,
|
||||
contactPhone: profile.contactPhone,
|
||||
contactEmail: profile.contactEmail ?? '',
|
||||
@@ -173,7 +173,8 @@ export const useTenantAdministrationStore = defineStore('tenant-administration',
|
||||
async function updateCompany(payload: TenantCompanyProfile) {
|
||||
const updated = await updateTenantProfile({
|
||||
tenantName: payload.companyName.trim(),
|
||||
legalName: payload.legalRepresentative.trim(),
|
||||
legalName: payload.companyName.trim(),
|
||||
legalRepresentative: payload.legalRepresentative.trim(),
|
||||
contactName: payload.contactName.trim(),
|
||||
contactPhone: payload.contactPhone.trim(),
|
||||
contactEmail: payload.contactEmail.trim(),
|
||||
@@ -181,7 +182,7 @@ export const useTenantAdministrationStore = defineStore('tenant-administration',
|
||||
company.value = {
|
||||
companyName: updated.tenantName,
|
||||
creditCode: updated.unifiedSocialCreditCode ?? '',
|
||||
legalRepresentative: updated.legalName,
|
||||
legalRepresentative: updated.legalRepresentative,
|
||||
contactName: updated.contactName,
|
||||
contactPhone: updated.contactPhone,
|
||||
contactEmail: updated.contactEmail ?? '',
|
||||
|
||||
Reference in New Issue
Block a user