[Vuejs]-How i set the value in created function before computed function initial

0👍

Make your Vue component fail-safe.

In your case:

  1. Use a flag for AJAX call completion state
  2. Handle computed request with default value if AJAX call not successful
  3. Handle computed request with compute if AJAX call was successful

Leave a comment