Merge pull request #6 from Bisheng940924/dev

fix: 获取字典参数为空时的判断条件
This commit is contained in:
Charles 2023-07-06 14:58:47 +08:00 committed by GitHub
commit 2022a535e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ const useDictStore = defineStore('dict', {
actions: {
// 获取字典
getDict(_name: string) {
if (_name === null && _name === '') {
if (_name == null || _name === '') {
return null;
}
try {