Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 306 | Rev 320 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 306 Rev 307
Línea 38... Línea 38...
38
    /**
38
    /**
39
     * get info test
39
     * get info test
40
     * @param {*} url 
40
     * @param {*} url 
41
     */
41
     */
42
    const getTestByUrl = async (url) => {
42
    const getTestByUrl = async (url) => {
43
        setLoading(true);
-
 
44
        await axios
43
        await axios
45
            .get(url)
44
            .get(url)
46
            .then((response) => {
45
            .then((response) => {
47
                if (response.data.data) {
46
                if (response.data.data) {
48
                    console.log(response.data.data);
47
                    console.log(response.data.data);
49
                    setTest(response.data.data);
48
                    setTest(response.data.data);
50
                }
49
                }
51
            });
50
            });
52
        setLoading(false);
-
 
53
    };
51
    };
Línea 54... Línea 52...
54
 
52
 
55
    /**
53
    /**
56
     * Search data
54
     * Search data