Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 565 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 565 Rev 573
Línea 39... Línea 39...
39
     * @param {*} url 
39
     * @param {*} url 
40
     */
40
     */
41
    const getTestByUrl = async (url) => {
41
    const getTestByUrl = async (url) => {
42
        await axios.get(url)
42
        await axios.get(url)
43
            .then((response) => {
43
            .then((response) => {
44
                if (response.data.data) {
44
                if (response.data.success) {
45
                    setAction(url);
45
                    setAction(url);
46
                    setTest(response.data.data);
46
                    setTest(response.data.data);
47
                }
47
                }
48
            });
48
            });
49
    };
49
    };