Преглед на файлове

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