web
9 小时以前 49fa0d82a40345342966e810b44429aec0480ef3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @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)
    // })
}