mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: fix function-setter bug
This commit is contained in:
parent
114b6b06ad
commit
8fd77df2a0
@ -62,7 +62,8 @@ export default class FunctionSetter extends PureComponent<FunctionSetterProps, {
|
||||
parseFunctionName = (functionString: String) => {
|
||||
// 因为函数格式是固定的,所以可以按照字符换去匹配获取函数名
|
||||
let funNameStr = functionString.split('.')[1];
|
||||
let endIndex = functionString.indexOf('(');
|
||||
let endIndex = funNameStr.indexOf('(');
|
||||
|
||||
return funNameStr.substr(0, endIndex);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user