For similar code building blocks, how to simplify the code with different values?

using the element-UI framework and Vue framework for development, each label is different and the value of the content is also different, the code structure is similar, how to optimize the code?
Thank you!

Jun.14,2021

v-for traversal

forConfig:[{label:'ID',key:'id'}...]
<el-form-item v-for="item in forConfig" :label="item.label" :key="item.key" >
    <span>{{props.row[item.key]}}</span>
</el-form-item>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40b6d-2c53c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40b6d-2c53c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?