chore: history page support sharedworker.js

This commit is contained in:
duorameng
2026-05-09 08:42:15 +08:00
parent 95a7de599e
commit 9c174d8db2
10 changed files with 92 additions and 25 deletions
+2 -2
View File
@@ -134,9 +134,9 @@ func ParseRepoScriptsAndAddCron(taskID string, logWriter io.Writer, forceComment
displayPath = filepath.Base(path)
relDir, _ := filepath.Rel(absScriptsDir, filepath.Dir(absPath))
if relDir == "." {
displayWorkDir = "$SCRIPTS_DIR$"
displayWorkDir = constant.ScriptsDirPlaceholder
} else {
displayWorkDir = filepath.ToSlash(filepath.Join("$SCRIPTS_DIR$", relDir))
displayWorkDir = filepath.ToSlash(filepath.Join(constant.ScriptsDirPlaceholder, relDir))
}
}