mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
fix(plugin-workflow): fix logger api (#6036)
This commit is contained in:
parent
a3ae8032f4
commit
2efa3eddea
@ -143,19 +143,19 @@
|
||||
"Node type": "节点类型",
|
||||
"Unknown node": "未知节点",
|
||||
"Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。",
|
||||
"Calculation": "运算",
|
||||
"Calculation engine": "运算引擎",
|
||||
"Calculation": "计算",
|
||||
"Calculation engine": "计算引擎",
|
||||
"Basic": "基础",
|
||||
"Calculation expression": "运算表达式",
|
||||
"Calculation expression": "计算表达式",
|
||||
"Expression syntax error": "表达式语法错误",
|
||||
"Syntax references: ": "语法参考:",
|
||||
"Calculation result": "运算结果",
|
||||
"Calculation result": "计算结果",
|
||||
"True": "真",
|
||||
"False": "假",
|
||||
"concat": "连接",
|
||||
"Condition": "条件判断",
|
||||
"Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".":
|
||||
"基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
|
||||
"基于计算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
|
||||
"Mode": "模式",
|
||||
"Continue when \"Yes\"": "“是”则继续",
|
||||
"Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续",
|
||||
|
@ -139,7 +139,7 @@ export default class PluginWorkflowServer extends Plugin {
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
getLogger(workflowId: ID): Logger {
|
||||
getLogger(workflowId: ID = 'dispatcher'): Logger {
|
||||
const now = new Date();
|
||||
const date = `${now.getFullYear()}-${`0${now.getMonth() + 1}`.slice(-2)}-${`0${now.getDate()}`.slice(-2)}`;
|
||||
const key = `${date}-${workflowId}}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user