解决 Upload.prefixPath 替换问题

This commit is contained in:
神仙都没用 2024-10-17 10:40:26 +08:00
parent 6cb3dab341
commit 254b444f22

View File

@ -16,7 +16,7 @@ export function useUpload() {
return new Promise((resolve, reject) => {
const executor = async () => {
// 合并配置
const { prefixPath, onProgress } = merge(options, opts);
const { prefixPath, onProgress } = merge({}, options, opts);
// 文件id
const fileId = uuid("");