What is the format of writing bacground image paths when processing vue data?

<el-carousel :interval="3500" arrow="always" >
  <el-carousel-item  v-for="img in carouselFigures" :key="img.id">
    <a  :style="{background: img.index}" target="_blank" class="aaa">
    </a>
  </el-carousel-item>
</el-carousel>

accept data code

const that = this;
console.log(that);
//
this.$http.get(
  that.$interface_+"getRecentImgs"
)
  .then(function (response) {
    if(response.data.status === 1){
      response.data.data.forEach(function(item){
        that.carouselFigures.push({
          src:item.location,
          index:("url(" + require(item.src) + ")"),
          description:item.description
        });
      });
    }else{
      that.$message({
        message: response.data.msg,
        type: "warning"
      });
    }
  })
  .catch(function (err) {
    console.log(err);
    that.$message({
      message: " error",
      type: "warning"
    })
  });
  
  ****
  [Vue warn]: Invalid prop: type check failed for prop "index". Expected String, got Undefined.
  
  background
Mar.22,2021

index:("url(" item.src + ")"),
The image returned by the

API should not be local, and require

is not required.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e726-2bc5f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e726-2bc5f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?