feat: 添加支付宝渠道配置和应用管理功能,更新相关表单和数据结构

This commit is contained in:
痴货
2025-05-05 12:19:04 +08:00
parent 8ab311b46f
commit 61e06cce09
14 changed files with 1130 additions and 23 deletions

View File

@@ -55,7 +55,7 @@ const props = withDefaults(
showDescription: false,
},
);
const emit = defineEmits(['change', 'update:value', 'delete']);
const emit = defineEmits(['change', 'update:value', 'delete', 'getText']);
const { accept, helpText, maxNumber, maxSize } = toRefs(props);
const isInnerOperate = ref<boolean>(false);
const { getStringAccept } = useUploadType({
@@ -122,6 +122,10 @@ const handleRemove = async (file: UploadFile) => {
};
const beforeUpload = async (file: File) => {
// 使用现代的Blob.text()方法替代FileReader
const fileContent = await file.text();
emit('getText', fileContent);
const { maxSize, accept } = props;
const isAct = checkFileType(file, accept);
if (!isAct) {