|
|
@ -10,12 +10,10 @@ import TPMIndexHOC from '../tpm/TPMIndexHOC';
|
|
|
|
|
|
|
|
|
|
|
|
import { SnackbarHOC } from 'educoder';
|
|
|
|
import { SnackbarHOC } from 'educoder';
|
|
|
|
import AccountNav from './account/AccountNav'
|
|
|
|
import AccountNav from './account/AccountNav'
|
|
|
|
|
|
|
|
import AccountBasic from './account/AccountBasic'
|
|
|
|
import axios from 'axios'
|
|
|
|
import axios from 'axios'
|
|
|
|
|
|
|
|
console.log(AccountBasic, '00000000')
|
|
|
|
|
|
|
|
|
|
|
|
const AccountBasic = Loadable({
|
|
|
|
|
|
|
|
loader: () => import('./account/AccountBasic'),
|
|
|
|
|
|
|
|
loading: Loading,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const AccountBasicEdit = Loadable({
|
|
|
|
const AccountBasicEdit = Loadable({
|
|
|
|
loader: () => import('./account/AccountBasicEdit'),
|
|
|
|
loader: () => import('./account/AccountBasicEdit'),
|
|
|
|
loading: Loading,
|
|
|
|
loading: Loading,
|
|
|
@ -62,7 +60,6 @@ class AccountPage extends Component {
|
|
|
|
if (result.data && result.data.base_info_completed == false) {
|
|
|
|
if (result.data && result.data.base_info_completed == false) {
|
|
|
|
this.props.history.push(`/account/profile/edit`);
|
|
|
|
this.props.history.push(`/account/profile/edit`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// "authentication": "uncertified", // "uncertified" | "applying" | "certified"
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
basicInfo: Object.assign({}, { ...result.data }, {
|
|
|
|
basicInfo: Object.assign({}, { ...result.data }, {
|
|
|
|
avatar_url: `${result.data.avatar_url}`,
|
|
|
|
avatar_url: `${result.data.avatar_url}`,
|
|
|
|