合并 智慧就业第一版

This commit is contained in:
2025-10-30 11:29:57 +08:00
parent 577b20661a
commit 6579abe021
166 changed files with 2818496 additions and 367 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) {
@@ -135,6 +135,7 @@ const useDictStore = defineStore("dict", () => {
return null
}
async function getDictSelectOption(dictType, isDigital) {
const resp = await createRequest(`/app/common/dict/${dictType}`);
if (resp.code === 200 && resp.data) {
@@ -175,6 +176,7 @@ const useDictStore = defineStore("dict", () => {
// 导入
return {
state,
getDictData,
dictLabel,
oneDictData,