From 411000f3cfad3bd98d277a26cbebf84386bb5474 Mon Sep 17 00:00:00 2001 From: tczjx58520 <2283600185@qq.com> Date: Sat, 2 Nov 2019 13:38:54 +0800 Subject: [PATCH] 11.2 --- src/views/EmployeeInformation/components/Mydialog.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/EmployeeInformation/components/Mydialog.vue b/src/views/EmployeeInformation/components/Mydialog.vue index b138d56b..4ea35f1d 100644 --- a/src/views/EmployeeInformation/components/Mydialog.vue +++ b/src/views/EmployeeInformation/components/Mydialog.vue @@ -195,7 +195,7 @@
- + {{ item.name }} @@ -391,7 +391,9 @@ export default { }) })) const listRoleName = list.filter(function(ele) { - return (ele.name.indexOf('-') !== -1) + if (ele !== undefined) { + return (ele.name.indexOf('-') !== -1) + } }) console.log(listRoleName) const sss2 = listRoleName.map(function(item) {