플랫 전분 기본 처리 반영
This commit is contained in:
@@ -92,6 +92,7 @@ class APIScenario {
|
||||
openScenario(event) {
|
||||
event.preventDefault();
|
||||
let scenarioId = $(event.target).closest('li').data('id');
|
||||
this.stopScenario();
|
||||
this.openScenarioById(scenarioId);
|
||||
}
|
||||
|
||||
@@ -308,6 +309,7 @@ class APIScenario {
|
||||
stopScenario() {
|
||||
if (this.executor) {
|
||||
this.executor.reset();
|
||||
this.executor = null;
|
||||
}
|
||||
this.outputEditor.setValue('');
|
||||
}
|
||||
@@ -353,6 +355,7 @@ class APIScenario {
|
||||
const y = ui.offset.top - $(this).offset().top;
|
||||
|
||||
const dataset = ui.draggable[0].dataset;
|
||||
console.log(dataset);
|
||||
var node = `<div><div class="title-box">API</div><div class="box">${dataset.name}</div></div>`;
|
||||
|
||||
me.editor.addNode(dataset.name, 1, 1, x, y, dataset.nodeType, dataset, node);
|
||||
|
||||
Reference in New Issue
Block a user