diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 58d37f9..bdaf8f7 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -94,7 +94,7 @@ export default { shipinyaoqiu: "Video requirements:", shipinyaoqiu1: "The time required for uploading video is within 30s", shipinyaoqiu2: "Support file size 100m", - shipinyaoqiu3: "File extension: FIV, MP4", + shipinyaoqiu3: "File extension: FLV, MP4, MOV, AVI, WAV", ziwojieshao: "self-introduction", lianxifangshi: "contact information", genghuanshoujihao: "Change mobile phone number", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index be579a2..e5d51b1 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -94,7 +94,7 @@ export default { shipinyaoqiu:"视频要求:", shipinyaoqiu1:"上传视频时间要求为30s之内", shipinyaoqiu2:"支持文件大小100M", - shipinyaoqiu3:"文件扩展名:fiv、mp4", + shipinyaoqiu3:"文件扩展名:flv、mp4、mov、avi、wav", fengmianyaoqiu:"封面要求:", fengmianyaoqiu1:"文件扩展名:jpg,png", fengmianyaoqiu2:"文件大小限制:2M", diff --git a/src/utils/common.ts b/src/utils/common.ts index d6ad46d..474eea0 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -77,7 +77,7 @@ export function provenimg(name: string): boolean{ */ export function provenvideo(name: string): boolean{ - const type = ['flv', 'mp4']; + const type = ['flv', 'mp4', 'wmv', 'mov', 'avi']; const ntypearr = name.split('.'); const ntype = ntypearr[ntypearr.length - 1]; for(const i in type){