提交 4471b054 编写于 作者: Y yinwusong 提交者: lucasun

fix: 2.6 版本批量迁移bug https://github.com/didi/KnowStreaming/issues/785

上级 7049e942
......@@ -173,8 +173,8 @@ class DataMigrationFormTable extends React.Component<IFormTableProps> {
const throttleArr = [] as any[];
infoData.beginTime = +moment(infoData.beginTime).format('x');
Object.getOwnPropertyNames(tableResult).forEach(key => {
const throttleIndex = Number(key.slice(0, 1));
const throttleKey = key.slice(2);
const throttleIndex = Number(key.split("-")[0]);
const throttleKey = key.split("-")[1];
const throttleName = tableResult[key];
if (!throttleArr[throttleIndex]) {
throttleArr[throttleIndex] = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册