wangziqian 5 years ago
parent
commit
3ee9c5367f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/workbench/person/index.vue

+ 1 - 1
src/views/workbench/person/index.vue

@@ -318,7 +318,7 @@ export default {
       if (res.code === 200) {
         this.calendarEvents = res.data.map(item => {
           const title = item.origin ? '日程' : '排期'
-          const require = `${item.requireNames.length > 0 ? item.requireNames.join(',') : '无'}`
+          const require = `${item.requireNames && item.requireNames.length > 0 ? item.requireNames.join(',') : '无'}`
           return {
             id: item.id,
             title: `${title}:${item.peopleObject.name}:${item.name}-${item.desc || '无'};所属需求:${require}`,