// @ts-nocheck // #ifdef APP-NVUE || APP-VUE export const getLocalFilePath = (path : string) => { if (typeof plus == 'undefined') return path if (/^(_www|_doc|_documents|_downloads|file:\/\/|\/storage\/emulated\/0\/)/.test(path)) return path if (/^\//.test(path)) { const localFilePath = plus.io.convertAbsoluteFileSystem(path) if (localFilePath !== path) { return localFilePath } else { path = path.slice(1) } } return '_www/' + path } // #endif // #ifdef UNI-APP-X && APP // lime-file-utils 已被删除,使用备用实现 export const getLocalFilePath = (path: string): string => { console.warn('getLocalFilePath: lime-file-utils 已被删除,使用备用实现') // 备用实现:直接返回路径 if (path.startsWith("http") || path.startsWith(" { // let uri = path // if (uri.startsWith("http") || uri.startsWith(" { // try { // let uri = path // if (uri.startsWith("http") || uri.startsWith("