问题描述: 前端使用select选择的码表数值,返回需要替换成相应的文字展示: // 码表转回label const renderLable = (data, text = '') => { const hasValue = data.find((item) => item.value === text); if (hasValue && JSON.stringify(hasValue) !== '{}') { return hasValue.label; } return text; };