- 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>
原文地址:https://www.cnblogs.com/wuqiuxue/p/9235783.html
时间: 2024-10-08 09:58:46