Commit 50b156da authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

fix: 是否开启上传图片默认值

See merge request !170
parents 839b3aaa 44c80e5f
...@@ -75,7 +75,9 @@ const isHasUploadImage = computed(() => { ...@@ -75,7 +75,9 @@ const isHasUploadImage = computed(() => {
const isEnglishLanguage = computed(() => systemLanguageStore.currentLanguageInfo.key === 'en') const isEnglishLanguage = computed(() => systemLanguageStore.currentLanguageInfo.key === 'en')
const isEnableUploadImage = computed(() => currentAgentApplication.value.unitIds?.includes(PluginType.IMAGE_OCR)) const isEnableUploadImage = computed(() => {
return currentAgentApplication.value.unitIds?.includes(PluginType.IMAGE_OCR) || false
})
;(function () { ;(function () {
getAgentApplicationSelectList() getAgentApplicationSelectList()
......
...@@ -51,7 +51,7 @@ const isEnableDocumentParse = computed(() => { ...@@ -51,7 +51,7 @@ const isEnableDocumentParse = computed(() => {
}) })
const isEnableUploadImage = computed(() => { const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) || false
}) })
onMounted(async () => { onMounted(async () => {
......
...@@ -101,7 +101,7 @@ const isUploadFileDisabled = computed(() => { ...@@ -101,7 +101,7 @@ const isUploadFileDisabled = computed(() => {
}) })
const isEnableUploadImage = computed(() => { const isEnableUploadImage = computed(() => {
return personalAppConfigStore.unitIds?.includes(PluginType.IMAGE_OCR) return personalAppConfigStore.unitIds?.includes(PluginType.IMAGE_OCR) || false
}) })
const uploadFileIcon = (type: string) => { const uploadFileIcon = (type: string) => {
......
...@@ -57,7 +57,7 @@ const isEnableDocumentParse = computed(() => { ...@@ -57,7 +57,7 @@ const isEnableDocumentParse = computed(() => {
}) })
const isEnableUploadImage = computed(() => { const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) || false
}) })
const isEnableVoice = computed(() => { const isEnableVoice = computed(() => {
......
...@@ -60,7 +60,7 @@ const isEnableDocumentParse = computed(() => { ...@@ -60,7 +60,7 @@ const isEnableDocumentParse = computed(() => {
}) })
const isEnableUploadImage = computed(() => { const isEnableUploadImage = computed(() => {
return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) return agentApplicationConfig.value.unitIds?.includes(PluginType.IMAGE_OCR) || false
}) })
const isEnableVoice = computed(() => { 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