Aktualisieren src/jsx/ui/student.jsx
This commit is contained in:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user