云员工头像处理

main
lijingyu007 11 months ago
parent e627b8a8f4
commit 749ddf79e0
  1. 6
      src/page/homepage/personability/abilityMore.vue

@ -57,6 +57,7 @@ export default {
pageSize: 12, pageSize: 12,
keyword: '', keyword: '',
}, },
base: process.env.VUE_APP_BASE_API
} }
}, },
mounted() {}, mounted() {},
@ -72,6 +73,11 @@ export default {
getCloudList(this.queryParams).then((res) => { getCloudList(this.queryParams).then((res) => {
this.total = res.total this.total = res.total
this.peopleList = res.rows this.peopleList = res.rows
this.peopleList.forEach(it => {
if (it.avatar.indexOf('/prod-api') == -1) {
it.avatar = this.base + it.avatar
}
})
}) })
}, },
handleSizeChange(val) { handleSizeChange(val) {

Loading…
Cancel
Save