|
|
@@ -335,15 +335,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// eslint-disable-next-line func-names
|
|
|
- // FIXME: debounce效果有点问题,待排查
|
|
|
lintJson: debounce(function (value) {
|
|
|
+ this.jsonValid = true;
|
|
|
try {
|
|
|
const result = jsonlint.parse(value);
|
|
|
this.pipelineConfig = JSON.stringify(result, null, ' ');
|
|
|
- this.jsonValid = true;
|
|
|
} catch (e) {
|
|
|
this.jsonValid = false;
|
|
|
- this.hint = e;
|
|
|
+ this.hint = `${value}\n${e}`;
|
|
|
}
|
|
|
}, 500),
|
|
|
async handlePipelineUpdateConfirm() {
|