forked from Gitlink/forgeplus-react
This commit is contained in:
parent
bdf61d7bbb
commit
1d64957e5a
|
@ -1,6 +1,6 @@
|
|||
import React, {Component} from 'react';
|
||||
import './public-path';
|
||||
import logo from './logo.svg';
|
||||
// import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import {ConfigProvider} from 'antd'
|
||||
import zhCN from 'antd/lib/locale-provider/zh_CN';
|
||||
|
@ -21,9 +21,9 @@ import Trialapplicationreview from './modules/user/Trialapplicationreview';
|
|||
import Addcourses from "./modules/courses/coursesPublic/Addcourses";
|
||||
import AccountProfile from "./modules/user/AccountProfile";
|
||||
import Accountnewprofile from './modules/user/Accountnewprofile';
|
||||
import Trialapplication from './modules/login/Trialapplication';
|
||||
// import Trialapplication from './modules/login/Trialapplication';
|
||||
import Certifiedprofessional from './modules/modals/Certifiedprofessional';
|
||||
import NotFoundPage from './NotFoundPage'
|
||||
// import NotFoundPage from './NotFoundPage'
|
||||
|
||||
import Loading from './Loading'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import React from "react";
|
|||
import axios from 'axios';
|
||||
import md5 from 'md5';
|
||||
import { requestProxy } from "./indexEduplus2RequestProxy";
|
||||
import { broadcastChannelOnmessage ,SetAppModel, isDev, queryString } from 'educoder';
|
||||
import { broadcastChannelOnmessage , isDev, queryString } from 'educoder';
|
||||
import { notification } from 'antd';
|
||||
import cookie from 'react-cookies';
|
||||
import './index.css';
|
||||
|
|
|
@ -245,11 +245,11 @@ class Detail extends Component{
|
|||
if (result) {
|
||||
if (result.data.status === 0) {
|
||||
this.props.history.push(`/projects/${result.data.id}/coders`);
|
||||
this.props.showNotification(result.data.message);
|
||||
}
|
||||
this.setState({
|
||||
isSpin:false
|
||||
})
|
||||
this.props.showNotification(result.data.message);
|
||||
} else {
|
||||
this.props.showNotification(`服务器开小差了`);
|
||||
}
|
||||
|
|
|
@ -173,14 +173,14 @@ class NewVersion extends Component{
|
|||
</div>
|
||||
|
||||
<Divider/>
|
||||
<div className="fr">
|
||||
<Checkbox onChange={this.RedieonChange}>标记为预行版</Checkbox>
|
||||
<p>标记此版本不适合生产使用</p>
|
||||
<div style={{textAlign:"right"}}>
|
||||
<Checkbox onChange={this.RedieonChange}>标记为预行版</Checkbox>
|
||||
<p className="mt5">标记此版本不适合生产使用</p>
|
||||
</div>
|
||||
<div className="clearfix mt15" style={{marginTop:5}} >
|
||||
<a className='topWrapper_btn_delete fr' onClick={()=>this.deleteversion()} style={{marginLeft:15}}>删除发布</a>
|
||||
<a className='topWrapper_btn fr' onClick={()=>this.handleSubmit()} style={{marginRight:15}}>编辑发布信息</a>
|
||||
<Link to={`/projects/${projectsId}/version`} style={{marginRight:30}} className='topWrapper_btn fr'>取消</Link>
|
||||
<a className='topWrapper_btn_delete fr' onClick={()=>this.deleteversion()} style={{marginLeft:15}}>删除发布</a>
|
||||
<a className='topWrapper_btn fr' onClick={()=>this.handleSubmit()} style={{marginRight:15}}>保存发布信息</a>
|
||||
<Link to={`/projects/${projectsId}/version`} style={{marginRight:30}} className='topWrapper_btn fr'>取消</Link>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
|
|
|
@ -20,9 +20,9 @@ import Trialapplication from "../login/Trialapplication";
|
|||
|
||||
const $ = window.$;
|
||||
const versionNum = '0001';
|
||||
let _url_origin='';
|
||||
let _url_origin='';
|
||||
if(window.location.port === "3007"){
|
||||
_url_origin="https://test-newweb.educoder.net";
|
||||
_url_origin="https://testforgeplus.trustie.net";
|
||||
}
|
||||
if (!window['indexHOCLoaded']) {
|
||||
window.indexHOCLoaded = true;
|
||||
|
|
Loading…
Reference in New Issue