Browse Source

Concertada a url de fetch de dados

vuejs_painel
AlGouvea 3 years ago
parent
commit
247b5c9083
  1. 5
      frontend/src/__apps/painel/main.js

5
frontend/src/__apps/painel/main.js

@ -89,8 +89,9 @@ const v = new Vue({ // eslint-disable-line
return texto
},
converterUrl (url) {
url = url.slice(-4)
url = '/painel/' + url + '/dados'
url = url.slice(-(url.length - url.lastIndexOf('/')))
url = '/painel' + url + '/dados'
console.log(url)
return url
},
fetchData () {

Loading…
Cancel
Save