rutas ajustadas
This commit is contained in:
@@ -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"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user