<template>
    <div class="role" :style="backgroundImg">
    
    </div>
</template>

<script>
  export default{
     data(){
      return {
         backgroundImg:{
              backgroundImage:"url("+require("@/assets/images/teacherIndex/bg.png")+")",
              backgroundRepeat: "no-repeat",
              backgroundSize: "100% 100%",
              marginTop: "5px",
            },
        }
    }
   }
</script>

 

Logo

前往低代码交流专区

更多推荐