Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1618 Rev 1872
Línea 179... Línea 179...
179
        dispatch(addNotification({ style: 'success', msg: data }))
179
        dispatch(addNotification({ style: 'success', msg: data }))
180
      })
180
      })
181
      .finally(() => setLoading(false))
181
      .finally(() => setLoading(false))
182
  }
182
  }
Línea 183... Línea 183...
183
 
183
 
184
  const getManageUrl = async () => {
184
  const getManageUrl = () => {
-
 
185
    axios
-
 
186
      .get(link_admin)
185
    try {
187
      .then((response) => {
-
 
188
        const { data, success } = response.data
-
 
189
 
-
 
190
        if (!success) {
-
 
191
          throw new Error(data)
-
 
192
        }
186
      const { data } = await axios.get(link_admin)
193
 
-
 
194
        window.open(data, '_backend')
187
      if (data.success) window.open(data.data, '_backend')
195
      })
188
    } catch (error) {
196
      .catch((error) => {
189
      console.log('>>: error > ', error)
197
        console.log('>>: error > ', error)
190
    }
198
      })
Línea 191... Línea 199...
191
  }
199
  }
192
 
200
 
193
  const navigateTo = (url) => {
201
  const navigateTo = (url) => {