0👍
I assume the process
is the task object { "id": 1, "project_id": 6, "action_1": 0, "action_2": 0, "action_3": 0, ..."action_132": 0
Object.keys(process).map(key => {
if (key.includes('action')) {
const actionNumber = key.substring(7) // get action number
if (1 <= actionNumber <= 3) {
task1.push(process[key]) // push the value of that action to task
}
... for another eondition
}
})
- [Vuejs]-Is there a way to show a div inside a div that has a false v-if statement
- [Vuejs]-Vue.js SEO friendly
Source:stackexchange.com