访问文件不存在时返回当前分支根目录

This commit is contained in:
caishi 2023-05-09 16:12:57 +08:00
parent e22b45c082
commit 83242b7824
3 changed files with 5690 additions and 1 deletions

View File

@ -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>

5685
public/js/alex/moment.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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){