@@ -40,6 +40,13 @@ export default {
apiSecurityPerson.getPersonDuty({
type: type
}).then(res=>{
+ if (res) {
+ res.forEach(item => {
+ if (item.photo.indexOf('/')===0) {
+ item.photo = '/ioc-api'+item.photo;
+ }
+ })
this.dutyPerson = res;
this.oriDutyPerson = JSON.parse(JSON.stringify(this.dutyPerson));
this.loading = false;