Skip to content

Commit

Permalink
fix: 获取字典参数为空时的判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisheng940924 authored and Charles7c committed Jul 6, 2023
1 parent 76f04dd commit 104f69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion continew-admin-ui/src/store/modules/dict/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const useDictStore = defineStore('dict', {
actions: {
// 获取字典
getDict(_name: string) {
if (_name === null && _name === '') {
if (_name == null || _name === '') {
return null;
}
try {
Expand Down

0 comments on commit 104f69e

Please sign in to comment.