feat: 初始化
This commit is contained in:
17
uni_modules/lime-shared/pathToBase64/uvue.uts
Normal file
17
uni_modules/lime-shared/pathToBase64/uvue.uts
Normal file
@ -0,0 +1,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)
|
||||
// })
|
||||
}
|
Reference in New Issue
Block a user