add SwitchBtn 组件

This commit is contained in:
lb
2023-01-31 10:35:26 +08:00
parent 7c8f844ace
commit e6fe05ae17
5 changed files with 78 additions and 8 deletions

View File

@@ -3,7 +3,6 @@ import moment from 'moment'
export const dictFilter = dictTypeId => {
return val => {
console.log('ddd', (JSON.parse(localStorage.getItem('dictList')))[dictTypeId])
return JSON.parse(localStorage.getItem('dictList'))[dictTypeId].find(item => item.dictValue === val)?.dictLabel || '-'
}
}