- https://blog.csdn.net/qq_30632003/article/details/79353035
- https://www.cnblogs.com/diantao/p/7776523.html
- 对于url,下面的设置比较可行,通过 require 引入
<template> <div class="recImage"> <div :style="{backgroundImage:'url('+urlData+')'}"></div> </div> </template> <script> export default { data() { return { urlData: "" }; } }; </script>