fix: 获取字典参数为空时的判断条件

This commit is contained in:
bisheng
2023-07-06 14:17:21 +08:00
committed by Charles7c
parent 76f04dd38f
commit 104f69e8a0

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 {