fix:edit value null
This commit is contained in:
parent
d7a99d2ee2
commit
34751b300e
1 changed files with 4 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
readonly: true,
|
readonly: true,
|
||||||
imageEdit: false,
|
imageEdit: false,
|
||||||
customerImageUrl: '',
|
customerImageUrl: '',
|
||||||
editCustomerId: '',
|
editCustomerId: undefined,
|
||||||
editCustomerBranchId: '',
|
editCustomerBranchId: '',
|
||||||
defaultCustomerImageUrl: '',
|
defaultCustomerImageUrl: '',
|
||||||
treeFile: [],
|
treeFile: [],
|
||||||
|
|
@ -987,9 +987,9 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
|
|
||||||
resetEmployeeData = {
|
resetEmployeeData = {
|
||||||
...payload,
|
...payload,
|
||||||
provinceId: province?.id,
|
provinceId: province?.id || '',
|
||||||
districtId: district?.id,
|
districtId: district?.id || '',
|
||||||
subDistrictId: subDistrict?.id,
|
subDistrictId: subDistrict?.id || '',
|
||||||
employeeCheckup: structuredClone(
|
employeeCheckup: structuredClone(
|
||||||
payload.employeeCheckup?.length === 0
|
payload.employeeCheckup?.length === 0
|
||||||
? defaultFormData.employeeCheckup
|
? defaultFormData.employeeCheckup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue