Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lcj-btp-java-app
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
郭智朋
lcj-btp-java-app
Commits
e5822190
Commit
e5822190
authored
Feb 16, 2025
by
guozhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载请求头
parent
713606df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
CustomerController.js
app/router/controller/CustomerController.js
+8
-0
No files found.
app/router/controller/CustomerController.js
View file @
e5822190
...
...
@@ -600,6 +600,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr
.
open
(
'POST'
,
this
.
baseUrl
+
url
,
true
);
xhr
.
setRequestHeader
(
'Content-type'
,
'application/json'
);
xhr
.
setRequestHeader
(
'language'
,
that
.
language
);
xhr
.
setRequestHeader
(
'x-csrf-token'
,
that
.
getStorage
().
get
(
"csrfToken"
));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr
.
onload
=
function
()
{
...
...
@@ -719,6 +721,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr
.
open
(
'POST'
,
this
.
baseUrl
+
url
,
true
);
xhr
.
setRequestHeader
(
'Content-type'
,
'application/json'
);
xhr
.
setRequestHeader
(
'language'
,
that
.
language
);
xhr
.
setRequestHeader
(
'x-csrf-token'
,
that
.
getStorage
().
get
(
"csrfToken"
));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr
.
onload
=
function
()
{
...
...
@@ -796,6 +800,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr
.
open
(
'POST'
,
this
.
baseUrl
+
url
,
true
);
xhr
.
setRequestHeader
(
'Content-type'
,
'application/json'
);
xhr
.
setRequestHeader
(
'language'
,
that
.
language
);
xhr
.
setRequestHeader
(
'x-csrf-token'
,
that
.
getStorage
().
get
(
"csrfToken"
));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr
.
onload
=
function
()
{
...
...
@@ -2839,6 +2845,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr
.
open
(
'POST'
,
this
.
baseUrl
+
url
,
true
);
xhr
.
setRequestHeader
(
'Content-type'
,
'application/json'
);
xhr
.
setRequestHeader
(
'language'
,
that
.
language
);
xhr
.
setRequestHeader
(
'x-csrf-token'
,
that
.
getStorage
().
get
(
"csrfToken"
));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr
.
onload
=
function
()
{
...
...
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