mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一处可能导致training状态异常的问题
This commit is contained in:
1 parent
b5c1f41dd2
commit
a1aeb521fe
11 files changed
+52
-37
No files matched your search
@@ -533,6 +533,11 @@ export const LANG_HIGHLIGHT_ID = {
|
||||
rb: 'ruby',
|
||||
};
|
||||
|
||||
export function registerLanguage(id: string, display: string, highlight: string) {
|
||||
LANG_TEXTS[id] = display;
|
||||
LANG_HIGHLIGHT_ID[id] = highlight;
|
||||
}
|
||||
|
||||
export const STATUS = {
|
||||
STATUS_WAITING: 0,
|
||||
STATUS_ACCEPTED: 1,
|
||||
@@ -618,6 +623,7 @@ export const CONSTANT = {
|
||||
|
||||
global.Hydro.model.builtin = {
|
||||
Permission,
|
||||
registerLanguage,
|
||||
PERM,
|
||||
PERMS,
|
||||
PERMS_BY_FAMILY,
|
||||
|
||||
Reference in new issue
Block a user