Home > database >  How to replace reactive value based on API response in Vue js 3
How to replace reactive value based on API response in Vue js 3

Time:05-31

I am trying to set the state of the checkbox based on the API response but I am not able to change its state.

App.vue

<script setup>
    import { ref, toRefs, reactive, onMounted } from "vue";
    import axios from "axios";
    import { Check, Close } from "@element-plus/icons-vue";
    import Loading from "../Loading.vue";

    let state = reactive({
        options: {},
        errors: [],
        loading: true,
        enableQuickView: true, //            
  • Related