Commit ae23dcd6 authored by asdf's avatar asdf

复制之后自动滚到最下

parent efbfa478
......@@ -234,6 +234,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
onCopyData(index) {
this.contentObj.dataArray.push(this.contentObj.dataArray[index]);
this.save();
setTimeout(() => {
window.scrollTo(0, document.body.scrollHeight);
}, 1)
}
onCoverSwitchChange() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment