This commit is contained in:
何美荣 2025-11-24 21:33:13 +08:00
commit 5b0b309aab

View File

@ -71,14 +71,15 @@ class SESafeSurveyTest extends React.Component {
this.setState({
UserList: ret
})
let usr = ret.find(it => it.ID === this.props.login.user.ID);
if (this.state.viewAll) {
//如果有自己 先看自己
this.setState({
SelUsrID: ret[0].ID
SelUsrID: usr != null ? usr.ID : ret[0].ID
}, () => {
this.getPapers();
});
} else {
let usr = ret.find(it => it.ID === this.props.login.user.ID);
if (usr) {
this.setState({
SelUsrID: usr.ID