<dl>
<dt><img :src="{item.img}" alt=""></dt>
<dd>
<li>:{item.name}</li>
<li>:{item.price}</li>
<li>:{item.address}</li>
</dd>
</dl>
<dl>
<dt><img :src="{item.img}" alt=""></dt>
<dd>
<li>:{item.name}</li>
<li>:{item.price}</li>
<li>:{item.address}</li>
</dd>
</dl>
react is direct src= {item.img}
you are using vue to bind pictures. React should use this:
<img src={item.img} alt="">
upstairs, that's how you write Vue.
Previous: How to identify whether it is a QR code when WeChat Mini Programs uploads a picture?
Next: When you open the vue project, `Cannot read property 'cssSourceMap' of undefined appears.
this is the axios interceptor used in React. How to do a react route transfer in the interceptor? import Axios from axios Axios.interceptors.request.use(function (config) { let token = window.localStorage.token; if (token) { config.headers...
tried to use Toast, in antd-mobile, but mine is on the web side of PC, and the effect is not loaded. import Axios from axios Axios.interceptors.request.use(function (config) { " " const token = window.localStorage.token; if (token) { ...