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 return texto
}, },
converterUrl (url) { converterUrl (url) {
url = url.slice(-4) url = url.slice(-(url.length - url.lastIndexOf('/')))
url = '/painel/' + url + '/dados' url = '/painel' + url + '/dados'
console.log(url)
return url return url
}, },
fetchData () { fetchData () {

Loading…
Cancel
Save