Aktualisieren src/jsx/ui/student.jsx

This commit is contained in:
Luca Jäntsch
2019-06-06 09:46:12 +02:00
parent 1db34b381a
commit ebcb0c5dde

View File

@@ -9,7 +9,7 @@ export class Student extends React.Component{
username:this.camelize(props.username), username:this.camelize(props.username),
name:props.username, name:props.username,
cl:props.cl, cl:props.cl,
img_url:'/data/class/'+props.cl+'/'+props.username+'.svg', img_url:'data/class/'+props.cl+'/'+props.username+'.svg',
num:props.i, num:props.i,
dis:"" dis:""
} }
@@ -27,7 +27,7 @@ export class Student extends React.Component{
return x.join(' '); return x.join(' ');
} }
onErr(){ onErr(){
var url = '/data/class/student.svg'; var url = 'data/class/student.svg';
this.setState({img_url:url}); this.setState({img_url:url});
} }
appear(){ appear(){