Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
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
王立鹏
corporateCulture-qd
Commits
0a8b3a2e
Commit
0a8b3a2e
authored
Nov 28, 2025
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】 fix: 统一配置
parent
0b85a51d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
config.ts
src/config.ts
+3
-3
index.ts
src/utils/request/index.ts
+2
-1
No files found.
src/config.ts
View file @
0a8b3a2e
...
@@ -10,14 +10,14 @@ interface IConfig {
...
@@ -10,14 +10,14 @@ interface IConfig {
export
const
app_config
:
{
[
key
:
string
]:
IConfig
}
=
{
export
const
app_config
:
{
[
key
:
string
]:
IConfig
}
=
{
// 正式环境
// 正式环境
production
:
{
production
:
{
baseUrl
:
'http
://oa.yswg.com.cn:8082
'
,
baseUrl
:
'http
s://culture.yswg.com.cn:8089
'
,
loginType
:
3
,
loginType
:
3
,
wxRedirect
:
'oa3.yswg.com.cn'
,
wxRedirect
:
'oa3.yswg.com.cn'
,
},
},
// 测试环境
// 测试环境
暂时无测试环境部署
test
:
{
test
:
{
baseUrl
:
'http://
47.119.149.50:8082'
,
baseUrl
:
'http://
192.168.2.55:8089'
,
// 首拥本地
loginType
:
1
,
loginType
:
1
,
wxRedirect
:
'oatest.yswg.com.cn:3457'
,
wxRedirect
:
'oatest.yswg.com.cn:3457'
,
},
},
...
...
src/utils/request/index.ts
View file @
0a8b3a2e
...
@@ -2,7 +2,8 @@ import { app_config } from '@/config'
...
@@ -2,7 +2,8 @@ import { app_config } from '@/config'
import
Axois
from
'./axios'
import
Axois
from
'./axios'
// 'http://192.168.2.168:8089'
// 'http://192.168.2.168:8089'
const
baseUrl
=
app_config
[
import
.
meta
.
env
.
MODE
]?.
baseUrl
const
baseUrl
=
app_config
[
import
.
meta
.
env
.
MODE
]?.
baseUrl
console
.
log
(
'baseUrl'
,
baseUrl
)
export
default
new
Axois
({
export
default
new
Axois
({
baseURL
:
'http://192.168.2.168:8089'
,
baseURL
:
baseUrl
,
timeout
:
1000
*
60
,
timeout
:
1000
*
60
,
})
})
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