若依框架-根据返回值直接对应字典表键值
使用场景:后端返回数据为 time 对应 时间 等这种value需要显示到页面上的为中文
<dict-tag
:options="dict.type.xxx" //xxx表示字典表名 (需提前在与 pops 同级的 dicts:[] 中引入)
:value="xxx" //需要对应中文的数据
/>
使用场景:后端返回数据为 time 对应 时间 等这种value需要显示到页面上的为中文
<dict-tag
:options="dict.type.xxx" //xxx表示字典表名 (需提前在与 pops 同级的 dicts:[] 中引入)
:value="xxx" //需要对应中文的数据
/>