Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
Homework83_M11
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ли Джен Сеп
Homework83_M11
Commits
3347fa4d
Commit
3347fa4d
authored
Dec 20, 2024
by
Ли Джен Сеп
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Удалил логи
parent
11028584
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
requestSlice.ts
frontend/src/features/requestSlice.ts
+0
-4
No files found.
frontend/src/features/requestSlice.ts
View file @
3347fa4d
...
@@ -21,8 +21,6 @@ const initialState: RequestState = {
...
@@ -21,8 +21,6 @@ const initialState: RequestState = {
export
const
encodeMessage
=
createAsyncThunk
(
'request/encode'
,
async
(
newMessage
:
IData
)
=>
{
export
const
encodeMessage
=
createAsyncThunk
(
'request/encode'
,
async
(
newMessage
:
IData
)
=>
{
try
{
try
{
const
{
data
}
=
await
axiosClient
.
post
(
'/encode'
,
newMessage
);
const
{
data
}
=
await
axiosClient
.
post
(
'/encode'
,
newMessage
);
console
.
log
(
data
);
console
.
log
(
newMessage
);
return
data
.
encoded
;
return
data
.
encoded
;
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
...
@@ -33,8 +31,6 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag
...
@@ -33,8 +31,6 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag
export
const
decodeMessage
=
createAsyncThunk
(
'request/decode'
,
async
(
newMessage
:
IData
)
=>
{
export
const
decodeMessage
=
createAsyncThunk
(
'request/decode'
,
async
(
newMessage
:
IData
)
=>
{
try
{
try
{
const
{
data
}
=
await
axiosClient
.
post
(
'/decode'
,
newMessage
);
const
{
data
}
=
await
axiosClient
.
post
(
'/decode'
,
newMessage
);
console
.
log
(
data
);
console
.
log
(
newMessage
);
return
data
.
decoded
;
return
data
.
decoded
;
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
throw
new
Error
(
error
.
response
?.
data
?.
message
||
'Error encoding message'
);
throw
new
Error
(
error
.
response
?.
data
?.
message
||
'Error encoding message'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment