Skip to content

Commit 7293d16

Browse files
committed
fix(ui): cli args in task
1 parent bbc418c commit 7293d16

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

web/src/components/TaskForm.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,17 @@ export default {
230230
},
231231
232232
args() {
233-
return JSON.parse(this.item.arguments || '[]');
233+
let res = this.item.arguments;
234+
235+
if (res == null) {
236+
res = this.template.arguments;
237+
}
238+
239+
if (res == null) {
240+
res = '[]';
241+
}
242+
243+
return JSON.parse(res);
234244
},
235245
236246
app() {

0 commit comments

Comments
 (0)