소스 검색

解决 Upload.prefixPath 替换问题

神仙都没用 9 달 전
부모
커밋
254b444f22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/plugins/upload/hooks/index.ts

+ 1 - 1
src/plugins/upload/hooks/index.ts

@@ -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("");