From 757d3762fc88c3c9808b41af3e4f19e613bcfc9a Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 9 May 2023 23:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/client/src/orangehrmP?= =?UTF-8?q?imPlugin/pages/employee/EmployeePersonalDetails.vue'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/employee/EmployeePersonalDetails.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue b/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue index 6886c91..702297b 100644 --- a/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue +++ b/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue @@ -339,9 +339,9 @@ export default { .request({ method: 'PUT', data: { - lastName: this.employee.lastName === '' - ? 'a' - : 'b', + lastName: this.employee.lastName.length > 0 + ? this.employee.lastName + : ' ', firstName: this.employee.firstName, middleName: this.employee.middleName, employeeId: this.employee.employeeId,