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
6c68c6da
Commit
6c68c6da
authored
Dec 20, 2024
by
Ли Джен Сеп
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'updateFront' into 'master'
Удалил логи See merge request
!17
parents
cd32547d
3347fa4d
Hide 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 @
6c68c6da
...
@@ -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