Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
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
ui
quantum-blocks-h5
Commits
7e1cd4d2
Commit
7e1cd4d2
authored
Sep 26, 2022
by
xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: vcc开关状态查询请求头version跟随app版本
parent
a5316dc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
editor.api.ts
app/web/api/editor.api.ts
+9
-0
apollo.json
config/apollo.json
+1
-1
No files found.
app/web/api/editor.api.ts
View file @
7e1cd4d2
...
@@ -26,9 +26,18 @@ export default {
...
@@ -26,9 +26,18 @@ export default {
});
});
},
},
getFinanceSetting
()
{
getFinanceSetting
()
{
const
customHeader
:
any
=
{};
if
(
EASY_ENV_IS_BROWSER
)
{
const
ua
=
window
.
navigator
.
userAgent
;
const
appVersion
=
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
?
(
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
as
string
[])[
1
]
:
'
8.2.00
'
;
customHeader
.
version
=
appVersion
;
}
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/vcc_switch/get-vcc-status`
,
{
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/vcc_switch/get-vcc-status`
,
{
areaType
:
6
areaType
:
6
},
{
customHeader
});
});
}
}
};
};
\ No newline at end of file
config/apollo.json
View file @
7e1cd4d2
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
},
},
"redis"
:
{
"redis"
:
{
"port"
:
"30835"
,
"port"
:
"30835"
,
"host"
:
"172.16.4.
6
"
,
"host"
:
"172.16.4.
89
"
,
"password"
:
""
,
"password"
:
""
,
"db"
:
0
"db"
:
0
},
},
...
...
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