Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
translation-server
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
qinmingyuan
translation-server
Commits
cd06f07c
Commit
cd06f07c
authored
Jan 13, 2025
by
mingyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:延长超时时间
parent
1b348885
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+2
-2
request.ts
src/common/utils/requests/request.ts
+1
-1
No files found.
Dockerfile
View file @
cd06f07c
# 使用官方 Node.js 镜像作为基础镜像
# 使用官方 Node.js 镜像作为基础镜像
FROM
node:2
2
-alpine as build-stage
FROM
node:2
0
-alpine as build-stage
# 设置工作目录
# 设置工作目录
WORKDIR
/code
WORKDIR
/code
...
@@ -18,7 +18,7 @@ COPY . .
...
@@ -18,7 +18,7 @@ COPY . .
RUN
yarn build
RUN
yarn build
# 使用更小的 Node.js 镜像作为运行时镜像
# 使用更小的 Node.js 镜像作为运行时镜像
FROM
node:2
2
-slim as app-stage
FROM
node:2
0
-slim as app-stage
# 设置环境变量
# 设置环境变量
ENV
NODE_ENV=development
ENV
NODE_ENV=development
...
...
src/common/utils/requests/request.ts
View file @
cd06f07c
...
@@ -44,7 +44,7 @@ export async function axiosPostRequest(
...
@@ -44,7 +44,7 @@ export async function axiosPostRequest(
)
{
)
{
try
{
try
{
// await 不能删
// await 不能删
return
await
Axios
.
post
(
url
,
data
,
{
...
config
,
timeout
:
1
0000
});
return
await
Axios
.
post
(
url
,
data
,
{
...
config
,
timeout
:
2
0000
});
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
if
(
isAxiosError
(
e
))
{
if
(
isAxiosError
(
e
))
{
...
...
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