mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
helpz: append /git to path if GLOBAL_CONFIG has set git attribute
Some checks failed
docker-images / multi (push) Has been cancelled
Some checks failed
docker-images / multi (push) Has been cancelled
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
c04b34bade
commit
8b143c090b
|
|
@ -31,7 +31,7 @@ function generateFormConfig(form) {
|
|||
function renderCode(tmpl) {
|
||||
// generate mustache config
|
||||
let conf: Record<string, string> = {
|
||||
path: (mirrorId.endsWith(".git") ? "/git/" : "/") + mirrorId,
|
||||
path: ((mirrorId.endsWith(".git") || GLOBAL_CONFIG.git) ? "/git/" : "/") + mirrorId,
|
||||
};
|
||||
Array.from(document.querySelectorAll("form.z-global")).forEach((elm) => {
|
||||
Object.assign(conf, generateFormConfig(elm));
|
||||
|
|
|
|||
Loading…
Reference in New Issue