I'm encountering some issues with Vue.js:
Currently, I have a list of elements that I'm iterating through using v-for in my script. This array is retrieved from Axios (API) in the created() lifecycle hook. Additionally, I have a static variable defined in my template.
{{colors.green[this.number]}}
However, after rendering the template (following an axios.post), this static variable is not appearing. I believe I need to find a way to update this variable or the DOM. Do you have any suggestions or insights on this matter? Thank you!
UPDATE: The issue still persists
Params
DOM