When running the code below, I encounter an issue. The code runs properly but the images are not displaying and instead showing the URL as unknown. How can I fix this problem? The images definitely exist.
<template>
<div class="slider"></div>
</template>
<style lang="scss" scoped>
.slider {
width: 100%;
height: 100%;
background-image: url("../assets/images/slides/2160/0.jpg");
}
</style>
<script>
export default {
name: "Slider",
};
</script>
Thank you for your help [js vue.js]
backgroundImage: `url(${require('../assets/images/slides/2160/0.jpg')})`
If my path already uses ${}, what steps should I take?
"../assets/images/slides/${this.$assetsResolution}/${i}.jpg"