友情链接管理;封装上传接口
This commit is contained in:
@ -52,7 +52,7 @@ const codeMessage = {
|
||||
* 配置request请求时的默认参数
|
||||
*/
|
||||
const request = extend({
|
||||
prefix: '/api',
|
||||
prefix: REQUEST_BASE,
|
||||
// errorHandler, // 默认错误处理
|
||||
credentials: 'include' // 默认请求是否带上cookie
|
||||
});
|
||||
|
@ -19,7 +19,6 @@ const FileTypeMap = {
|
||||
|
||||
}
|
||||
export const validateFileSize = (file: File, maxSize: number,type: string[]) => {
|
||||
console.log(file)
|
||||
const { LIST_IGNORE } = Upload;
|
||||
const isLtMaxSize = file.size / 1024 / 1024 < maxSize;
|
||||
if (!isLtMaxSize) {
|
||||
|
Reference in New Issue
Block a user