diff --git a/continew-admin-ui/src/store/modules/dict/index.ts b/continew-admin-ui/src/store/modules/dict/index.ts index 908c4378..2aed7faf 100644 --- a/continew-admin-ui/src/store/modules/dict/index.ts +++ b/continew-admin-ui/src/store/modules/dict/index.ts @@ -6,7 +6,7 @@ const useDictStore = defineStore('dict', { actions: { // 获取字典 getDict(_name: string) { - if (_name === null && _name === '') { + if (_name == null || _name === '') { return null; } try {