合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
498 B

// @ts-nocheck
// import { processFile, ProcessFileOptions } from '@/uni_modules/lime-file-utils'
export function pathToBase64(path : string) : Promise<string> {
console.error('pathToBase64: 当前环境不支持,请使用 【lime-file-utils】')
// return new Promise((resolve, reject) => {
// processFile({
// type: 'toDataURL',
// path,
// success(res : string) {
// resolve(res)
// },
// fail(err: any){
// reject(err)
// }
// } as ProcessFileOptions)
// })
}