Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
9cc2e08c
Commit
9cc2e08c
authored
Jul 18, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地baseurl和token设置
parent
ffd017f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
axios_http3.js
sdk/axios_http3.js
+1
-1
_peixun_yanlian_detail-anquan.js
src/_peixun_yanlian_detail-anquan.js
+3
-3
No files found.
sdk/axios_http3.js
View file @
9cc2e08c
...
...
@@ -4,7 +4,7 @@
// 环境的切换
if
(
window
.
env
==
'
dev
'
)
{
const
BASE_URL
=
'
http://192.168.2.37:8080
'
axios
.
defaults
.
baseURL
=
'
http://192.168.2.37:8080
'
// 消费者token
...
...
src/_peixun_yanlian_detail-anquan.js
View file @
9cc2e08c
...
...
@@ -9,7 +9,7 @@ window.addEventListener("load", function() {
el
:
'
#app
'
,
data
()
{
return
{
previewUrl
:
axios
.
defaults
.
base
URL
,
previewUrl
:
BASE_
URL
,
flag
:
'
XQ
'
,
flag
:
'
ADD
'
,
showDatePicker
:
false
,
// 控制日期选择器显示
...
...
@@ -110,11 +110,11 @@ window.addEventListener("load", function() {
// formData.append('biz_content',SM.encrypt('dangerjob', API_KEY_MAP["upload"]["publicKey"]));
// 发送HTTP POST请求
fetch
(
axios
.
defaults
.
base
URL
+
'
/common/upload
'
,
{
fetch
(
BASE_
URL
+
'
/common/upload
'
,
{
method
:
'
POST
'
,
body
:
formData
,
headers
:
{
'
Authorization
'
:
axios
.
defaults
.
headers
.
common
[
'
Authorization
'
]
,
'
Authorization
'
:
gemhoUtil
.
getCookie
(
'
token
'
)
,
}
})
.
then
(
response
=>
{
...
...
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