div v-for="(item,i) in dataList" :key="i" class="wrapper">
<div class="top-title" :id="item.id">
<div class="name">{{item.product}}</div>
<div class="num">{{item.status}}</div>
</div>
</div>
item.status is the status code obtained from the backend. For example, if status is 10, I want to change it to the text "success" and return to 20, and I want to change it to the text "failure". I can render a judgment with JQ, but how should I achieve this kind of page rendering?
have thought about using ref to obtain the rendered status code, and then judge it through the method, but there is still a problem in implementation. Please give us your advice