rutas ajustadas

This commit is contained in:
2020-08-22 02:25:43 -05:00
parent 6863cf7306
commit 1f7f93861a
8 changed files with 108 additions and 80 deletions
+3 -2
View File
@@ -49,13 +49,14 @@ export default {
},
async created() {
try {
let path = `${config.api}/imagenCarrusel?nombre=`;
let nombres = await axios.get(`${config.api}/nombreCarrusel`);
nombres = nombres.data.data;
for (let i = 0; i < nombres.length; i++) {
console.log(` Este es el nombre ${nombres[i]}`);
console.log(path);
let config = {
// example url
url: `http://localhost:3000/imagenCarrusel?nombre=${nombres[i]}`,
url: `${path}${nombres[i]}`,
method: "GET",
responseType: "blob"
};