diff --git a/src/AppConfig.js b/src/AppConfig.js index 9ca6363a..cf7fe8b6 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -25,7 +25,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : window.location.search.indexOf('debug=s') !== -1 ? 'student' : - window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index c307a8be..e45f97cc 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -220,7 +220,7 @@ class Index extends Component { user_id:owners_id, blockchain: tokenConTri, blockchain_token_all: 10000, - blockchain_init_token: blockchain_init && blockchain_init/100 + blockchain_init_token: parseInt(blockchain_init) }).then((result) => { if (result && result.data.id) { projectsType && projectsType !== "mirror" && this.props.showNotification(`项目创建成功!`);