dist
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user