Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 303 Rev 304
Línea 42... Línea 42...
42
    const getTestByUrl = async (url) => {
42
    const getTestByUrl = async (url) => {
43
        setLoading(true);
43
        setLoading(true);
44
        await axios
44
        await axios
45
            .get(url)
45
            .get(url)
46
            .then((response) => {
46
            .then((response) => {
47
                if (response.data.success) {
47
                if (response.data.data) {
48
                    console.log(response.data.data);
48
                    console.log(response.data.data);
49
                    setTest(response.data.data);
49
                    setTest(response.data.data);
50
                }
50
                }
51
            });
51
            });
52
        setLoading(false);
52
        setLoading(false);