From 247b5c90835cdcc1d5f2400f6b89a6253c322008 Mon Sep 17 00:00:00 2001 From: AlGouvea Date: Fri, 16 Jul 2021 10:07:27 -0300 Subject: [PATCH] Concertada a url de fetch de dados --- frontend/src/__apps/painel/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/__apps/painel/main.js b/frontend/src/__apps/painel/main.js index 9c9b4633f..b06d64b5e 100644 --- a/frontend/src/__apps/painel/main.js +++ b/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 () {