访问文件不存在时返回当前分支根目录
This commit is contained in:
parent
e22b45c082
commit
83242b7824
|
|
@ -53,7 +53,7 @@
|
|||
<script src="%PUBLIC_URL%js/codemirror/codemirror.js"></script>
|
||||
<script src="%PUBLIC_URL%js/editormd/editormd.min.js"></script>
|
||||
<script src="%PUBLIC_URL%js/codemirror/merge/merge.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/moment/2.29.4/moment.js"></script>
|
||||
<script src="%PUBLIC_URL%js/alex/moment.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.19/bundle/alex.all.global.min.js"></script>
|
||||
<%= htmlWebpackPlugin.tags.bodyTags %>
|
||||
<script>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -223,6 +223,10 @@ function CoderDepot(props){
|
|||
type
|
||||
}
|
||||
}).then((result) => {
|
||||
if(result.data.status === -2){
|
||||
props.showNotification(result.data.message);
|
||||
props.history.push(`/${owner}/${projectsId}/tree/${turnbar(ref || branchName)}`)
|
||||
}
|
||||
if (result) {
|
||||
let en = result.data.entries;
|
||||
if(en.type){
|
||||
|
|
|
|||
Loading…
Reference in New Issue