Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1587 Rev 2960
Línea 2... Línea 2...
2
 
2
 
3
export const getOnRoom = async () => {
3
export const getOnRoom = async () => {
4
  const { data: response } = await axios.post('/moodle')
4
  const { data: response } = await axios.post('/moodle')
Línea -... Línea 5...
-
 
5
  const { data, success } = response
-
 
6
 
-
 
7
  const url = new URL(data.url)
-
 
8
 
-
 
9
  Object.keys(response).forEach((key) => {
-
 
10
    if (key === 'url') return
-
 
11
    url.searchParams.set(key, response[key])
5
  const { data, success } = response
12
  })
6
 
13
 
7
  if (!success) {
14
  if (!success) {
Línea 8... Línea 15...
8
    throw new Error('Ha ocurrido un error en la comunicacion con ON ROOM')
15
    throw new Error('Ha ocurrido un error en la comunicacion con ON ROOM')