bug
This commit is contained in:
parent
d0269881c9
commit
201b8b22b9
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,7 @@
|
|||
<link rel="canonical" href="https://gitlink.org.cn" data-turbo-transient="">
|
||||
<link rel="fluid-icon" href="https://www.gitlink.org.cn/images/logo.png" title="GitLink">
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
||||
<link href="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.19/bundle/alex.all.global.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/alex/alex.all.global.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/iconfont.css">
|
||||
<!-- <link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/edu-purge.css"> -->
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/editormd.min.css">
|
||||
|
|
|
@ -268,7 +268,7 @@ class CoderRootFileDetail extends Component {
|
|||
currentBranch,
|
||||
platform,
|
||||
md,
|
||||
type
|
||||
type,
|
||||
} = this.props;
|
||||
// 文件只读状态
|
||||
const readOnly = this.props.history.location.search.indexOf('edit') === -1
|
||||
|
@ -376,7 +376,11 @@ class CoderRootFileDetail extends Component {
|
|||
<a onClick={() => this.DownLoadFile(detail.download_url)} className="color-blue font-15">
|
||||
下载原始文件
|
||||
</a>
|
||||
<a onClick={this.showReplaceBox} className="color-blue font-15" style={{marginLeft:"120px"}}>替换原始文件</a>
|
||||
{
|
||||
flag ?
|
||||
<a onClick={this.showReplaceBox} className="color-blue font-15" style={{marginLeft:"120px"}}>替换原始文件</a>
|
||||
:""
|
||||
}
|
||||
</div>
|
||||
) : (
|
||||
md && readOnly ?
|
||||
|
|
|
@ -17,6 +17,8 @@ class Read extends Component {
|
|||
fileContent: undefined,
|
||||
fileName: undefined,
|
||||
});
|
||||
const { load } = this.props;
|
||||
load && load();
|
||||
};
|
||||
|
||||
beforeUpload = (file) => {
|
||||
|
|
Loading…
Reference in New Issue