文件缓存处理

This commit is contained in:
yanghang
2025-07-03 11:16:51 +08:00
parent b2b730ceef
commit 32be7fbfb7
4 changed files with 113 additions and 28 deletions
+3
View File
@@ -4,6 +4,7 @@ import {
import {
getToken
} from '@/common/common.js'
import common from '@/common/common';
export const uploadFile = (file, data) => {
@@ -145,9 +146,11 @@ export function downloadVoiceFile(url) {
url: `${baseUrl}${url}`,
header,
success(result) {
console.log(result)
resolve(result)
},
fail(error) {
console.log(error)
reject(new Error(error));
}
});