Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

枚举插件提供getOrDefault方法翻译字典 #212

Open
falcon-jin opened this issue Sep 12, 2023 · 0 comments
Open

枚举插件提供getOrDefault方法翻译字典 #212

falcon-jin opened this issue Sep 12, 2023 · 0 comments

Comments

@falcon-jin
Copy link

您的Feature Request/想法是否与已有问题有关? 请描述。
比如我传一个字典编码sex 如果运行时或者编译时没有配置 自动掉字典查询接口去后端查

简述你想要的解决方案
没有可以不填写
get('sex',()=>{
//如果前端没查询到'sex' 自己在这个函数处理 可以去后端查询 或者返回默认值
})
getDict('sex) //获取字典 如果前端缓存的有‘sex’就直接返回值 如果没有可以掉全局配置的接口或者函数去后端查询字典

描述你考虑过的替代方案
是否有替代方案、你看过的不错的参考方案、交互方案等

其它补充内容
任何和这个问题有关的额外内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant