Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
procurementcloud_vue_dzjypt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
朱幸伦
procurementcloud_vue_dzjypt
Commits
97c6c36c
Commit
97c6c36c
authored
Oct 11, 2023
by
zhuxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
7940e3a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/assets/js/utils/request.js
src/assets/js/utils/request.js
+5
-1
No files found.
src/assets/js/utils/request.js
View file @
97c6c36c
...
...
@@ -14,6 +14,10 @@ const service = axios.create({
service
.
interceptors
.
request
.
use
(
config
=>
{
config
[
'
url
'
]
=
encodeURI
(
config
[
'
url
'
])
//解决中文乱码问题
console
.
log
(
'
configggg
'
,
config
[
'
url
'
])
if
((
window
.
location
.
href
).
includes
(
'
bidweb
'
)){
config
[
'
url
'
]
=
(
config
[
'
url
'
]).
replace
(
"
bidprocurement
"
,
"
service-app
"
)
}
config
.
headers
[
'
Content-Type
'
]
=
'
application/json;charset=UTF-8
'
//请求类型
if
(
config
.
accessToken
||
getToken
())
{
config
.
headers
[
'
X-AUTH-TOKEN
'
]
=
config
.
accessToken
||
getToken
()
//token
...
...
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