fix: 修复由于Debugger ReadData是get请求无法获取body导致返回B0adRequest的问题
This commit is contained in:
parent
3257a68407
commit
82bc03b9fb
|
@ -357,7 +357,7 @@ public class DebuggerController : ControllerBase
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="config">调试器配置信息,包含采样深度、端口数、通道配置等</param>
|
/// <param name="config">调试器配置信息,包含采样深度、端口数、通道配置等</param>
|
||||||
/// <param name="cancellationToken">取消操作的令牌</param>
|
/// <param name="cancellationToken">取消操作的令牌</param>
|
||||||
[HttpGet("ReadData")]
|
[HttpPost("ReadData")]
|
||||||
[EnableCors("Users")]
|
[EnableCors("Users")]
|
||||||
[ProducesResponseType(typeof(ChannelCaptureData[]), StatusCodes.Status200OK)]
|
[ProducesResponseType(typeof(ChannelCaptureData[]), StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status400BadRequest)]
|
[ProducesResponseType(StatusCodes.Status400BadRequest)]
|
||||||
|
|
|
@ -2576,7 +2576,7 @@ export class DebuggerClient {
|
||||||
|
|
||||||
let options_: AxiosRequestConfig = {
|
let options_: AxiosRequestConfig = {
|
||||||
data: content_,
|
data: content_,
|
||||||
method: "GET",
|
method: "POST",
|
||||||
url: url_,
|
url: url_,
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
Loading…
Reference in New Issue