[Vuejs]-Axios – how can I conditionally append fields

0👍

Since by the look of it, it looks like the second parameter is an object, so one way of doing it, would be to invoke a function as the second parameter and passing your data inside self as an argument. The function will then check if self.hyperlink_column exists and then return an object accordingly. like this

Repl

PS : This is done using closure.

Leave a comment