添加附件上传显示提示以及配置项
This commit is contained in:
@ -96,6 +96,9 @@
|
||||
>
|
||||
<img v-if="data.photoUrl" :src="data.photoUrl" />
|
||||
<div v-else>{{ t('点击上传照片') }}</div>
|
||||
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px;">
|
||||
{{VITE_GLOB_UPLOAD_ALERT_TIP}}
|
||||
</div>
|
||||
</a-upload>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
@ -141,6 +144,7 @@
|
||||
import { StampType, StampFileTypeAttributes } from '/@/enums/workflowEnum';
|
||||
import { dataURLtoBlob } from '/@/utils/file/base64Conver';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
|
||||
const { t } = useI18n();
|
||||
let props = defineProps(['id', 'type', 'info']);
|
||||
const formRef = ref();
|
||||
|
||||
Reference in New Issue
Block a user