排查后端发现没问题,我的后端如下:
@NotLogin
@PostMapping("/dall")
@ApiOperation(value="AI换脸")
public AjaxResult<Object> dall(@Validated @RequestBody AiDalle3CreateValidate aiDalle3CreateValidate, HttpServletRequest request) {
//校验APIkey
String apiKey = request.getHeader("apiKey");
}
发现居然是前端的问题
const params = ref({
size: "",
prompt: ""
})
改成即可
//请求参数
const params= reactive({
size: 0,
prompt:"",
});