This commit is contained in:
2026-01-26 09:44:48 +08:00
parent 42be40ee9f
commit 01e87acfd1
28 changed files with 1016 additions and 1050 deletions

View File

@@ -1,20 +1,20 @@
import systemApi from "@/api/system";
import systemApi from '@/api/system'
//上传配置
export default {
apiObj: systemApi.upload.post, //上传请求API对象
filename: "file", //form请求时文件的key
successCode: 1, //请求完成代码
maxSize: 10, //最大文件大小 默认10MB
apiObj: systemApi.upload.post, //上传请求API对象
filename: 'file', //form请求时文件的key
successCode: 1, //请求完成代码
maxSize: 10, //最大文件大小 默认10MB
parseData: function (res) {
return {
code: res.code, //分析状态字段结构
fileName: res.data.name,//分析文件名称
src: res.data.url, //分析图片远程地址结构
msg: res.message //分析描述字段结构
code: res.code, //分析状态字段结构
fileName: res.data.name, //分析文件名称
src: res.data.url, //分析图片远程地址结构
msg: res.message, //分析描述字段结构
}
},
apiObjFile: systemApi.upload.post, //附件上传请求API对象
maxSizeFile: 10 //最大文件大小 默认10MB
apiObjFile: systemApi.upload.post, //附件上传请求API对象
maxSizeFile: 10, //最大文件大小 默认10MB
}