Commit 1f4f62bb authored by nick zheng's avatar nick zheng

fix: 语法错误

parent 942b7fe6
......@@ -74,7 +74,7 @@ const isHasUploadImage = computed(() => {
const isEnglishLanguage = computed(() => systemLanguageStore.currentLanguageInfo.key === 'en')
const isEnableUploadImage = computed(() => currentAgentApplication.value.unitIds.includes(PluginType.IMAGE_OCR))
const isEnableUploadImage = computed(() => currentAgentApplication.value.unitIds?.includes(PluginType.IMAGE_OCR))
;(function () {
getAgentApplicationSelectList()
......
......@@ -51,7 +51,7 @@ const isEnableDocumentParse = computed(() => {
})
const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds.includes(PluginType.IMAGE_OCR)
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR)
})
onMounted(async () => {
......
......@@ -101,7 +101,7 @@ const isUploadFileDisabled = computed(() => {
})
const isEnableUploadImage = computed(() => {
return personalAppConfigStore.unitIds.includes(PluginType.IMAGE_OCR)
return personalAppConfigStore.unitIds?.includes(PluginType.IMAGE_OCR)
})
const uploadFileIcon = (type: string) => {
......
......@@ -57,7 +57,7 @@ const isEnableDocumentParse = computed(() => {
})
const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds.includes(PluginType.IMAGE_OCR)
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR)
})
const isEnableVoice = computed(() => {
......
......@@ -60,7 +60,7 @@ const isEnableDocumentParse = computed(() => {
})
const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds.includes(PluginType.IMAGE_OCR)
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR)
})
const isEnableVoice = computed(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment