企业信息补全接口联调
This commit is contained in:
@@ -98,7 +98,7 @@ const useDictStore = defineStore("dict", () => {
|
||||
}
|
||||
|
||||
function dictLabel(dictType, value) {
|
||||
if (state[dictType]) {
|
||||
if (state[dictType] && Array.isArray(state[dictType])) {
|
||||
for (let i = 0; i < state[dictType].length; i++) {
|
||||
let element = state[dictType][i];
|
||||
if (element.value === value) {
|
||||
@@ -176,6 +176,7 @@ const useDictStore = defineStore("dict", () => {
|
||||
|
||||
// 导入
|
||||
return {
|
||||
state,
|
||||
getDictData,
|
||||
dictLabel,
|
||||
oneDictData,
|
||||
|
Reference in New Issue
Block a user