企业信息补全接口联调

This commit is contained in:
冯辉
2025-10-22 13:15:10 +08:00
parent 8bb3c424e2
commit 4f94090b42
10 changed files with 331 additions and 32 deletions

View File

@@ -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,