vue同时保存MultipartFile和其他属性

<input ref="depfile" type="file" placeholder="部署文件" />
import axios from "axios";
import errorCode from "@/utils/errorCode";
import { getToken } from "@/utils/auth";

// 前端方法
let fd = new FormData();
fd.append("file", this.$refs.depfile.files[0]);
fd.append("title", this.form.title);
fd.append("type", this.form.type);
fd.append("remark", this.form.remark);
axios.post("/biz/xxx", fd, { headers: { Authorization: "Bearer " + getToken() },})
.then((res) => {
	const code = res.data.code || 200;
	// 获取错误信息
	const msg = errorCode[code] || res.data.msg || errorCode["default"];
	if (code == 200) {
	  this.$modal.msgSuccess("新增成功");
	  this.open = false;
	  this.getList();
	}else{
	  this.$modal.msgError(msg);
	}
});
// 后端保存
@PostMapping
public AjaxResult add(MultipartFile file, BizActProcess bizActProcess) {
try {
 return toAjax(bizxxx.save(file, bizActProcess));
} catch (Exception e) {
 return AjaxResult.error();
}
}