更新文件后alex报错

This commit is contained in:
caishi 2023-05-10 10:19:40 +08:00
parent 0b63a00af2
commit 3172f09fdf
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class UserSubmitComponent extends Component {
if (result.data && result.data.status === 1) {
let b = currentBranch || branch;
window.scrollTo(0,0);
let url = `/${owner}/${projectsId}${(values.branchname ? `/tree/${turnbar(values.branchname)}` : (b ? `/tree/${turnbar(b)}`:""))}`;
let url = `/${owner}/${projectsId}${(values.branchname ? `/tree/${turnbar(values.branchname)}` : (b ? `/tree/${turnbar(b)}`:""))}${detail.path ? `/${returnbar(detail.path)}` : ""}`;
this.props.history.push(url);
this.props.showNotification("文件修改成功!");
}