Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)

I don't know what is wrong with the callback in the last line in vue2. The webpage runs well but has red error showing "Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)"

const login = (force, callback) => {
  var token = localStorage.getItem('token')
  if (!token) {
    return
  }
  if (!force) {
    force = 0
  }
  let browser = Global.config.browser === 'qt' ? 10 : 11
  app.post('/active', {
    'domain': domain,
  })
    .then(response => {
      if (response.data.error === 0) {
        
        var back = 0
        callback(back)
      } else {
        back = 1
        callback(back)
      }
    })
    .catch(error => {
      if (error.response) {
        var back = 3
      } else {
        back = 2
      }
      callback(back)
    })
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda