整体平台上传功能大改造

This commit is contained in:
2026-09-09 10:49:57 +08:00
parent d2643a3697
commit de7225b61e
21 changed files with 3835 additions and 2622 deletions
@@ -24,7 +24,8 @@
<el-form-item label="资质图片" prop="file_url">
<el-upload
class="avatar-uploader"
action="/api/platform/common/upload"
:action="uploadAction"
:headers="uploadHeaders"
:show-file-list="false"
:on-success="handleUploadSuccess"
:before-upload="beforeAvatarUpload"
@@ -70,7 +71,13 @@
const submitting = ref(false);
const tenantName = ref('');
const formRef = ref();
// 上传地址:走租户后台通用上传接口(原 /api/platform/common/upload 后端不存在,会 404)
const uploadAction = import.meta.env.VITE_API_BASE_URL + '/backend/uploadfile';
const uploadHeaders = {
Authorization: 'Bearer ' + (localStorage.getItem('token') || '')
};
const formData = reactive({
tid: null,
type: '',