This commit is contained in:
黄心宇 2024-04-18 11:48:38 +08:00
parent baeceb9c1e
commit 5b8fdbe958
3 changed files with 14 additions and 14 deletions

View File

@ -10,7 +10,7 @@ app.use('/build', express.static('build'));
const options = (target) => {
return {
target: target,
changeOrigin: false, // 允许在请求头中更改主机
changeOrigin: true, // 允许在请求头中更改主机
timeout: 30000,
};
}

View File

@ -10,7 +10,7 @@ if (!__SERVER__) {
}
const isDev = __SERVER__ ? false : window.location.port == 3007;
const isdev2= __SERVER__ ? false : window.location.hostname ==='www.educoder.net'
export const TEST_HOST = "https://testforgeplus.trustie.net/"
export const TEST_HOST = "https://testforgeplus.trustie.net"
export function getImageUrl(path) {
// https://www.educoder.net
// https://testbdweb.trustie.net

View File

@ -571,18 +571,18 @@ function CoderDepot(props){
})
}
{
// fileInfo &&
// <CoderRootFileDetail
// {...props}
// detail={fileInfo}
// readOnly={readOnly}
// md={mdFlag}
// onEdit={onEdit}
// currentBranch={branchName || defaultBranch}
// branch={branchName || defaultBranch}
// type={projectDetail.type}
// treeValuePath={treeValuePath}
// ></CoderRootFileDetail>
fileInfo &&
<CoderRootFileDetail
{...props}
detail={fileInfo}
readOnly={readOnly}
md={mdFlag}
onEdit={onEdit}
currentBranch={branchName || defaultBranch}
branch={branchName || defaultBranch}
type={projectDetail.type}
treeValuePath={treeValuePath}
></CoderRootFileDetail>
}
</ul>
</div>