This commit is contained in:
2020-11-26 16:44:58 +08:00
parent db97a769a0
commit a977b4b2b5
6 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
import { message } from 'ant-design-vue';
import { geti18n } from './i18n';
const lan = geti18n()
/**
* 图片转Base64
@@ -64,6 +63,7 @@ export function getValue(key: string): any{
*/
export function provenimg(file: any): boolean | void{
const lan = geti18n()
const type = ['png', 'jpg'];
const ntypearr = file.name.split('.');
const ntype = ntypearr[ntypearr.length - 1];
@@ -89,6 +89,7 @@ export function provenimg(file: any): boolean | void{
*/
export function provenvideo(file: any, isvideo?: boolean): boolean{
const lan = geti18n()
const type = ['flv', 'mp4', 'wmv', 'mov', 'avi'];
const ntypearr = file.name.split('.');
const ntype = ntypearr[ntypearr.length - 1];