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
c62914ca
Commit
c62914ca
authored
Feb 18, 2025
by
guozhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
91e3a7cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Login.controller.js
app/router/controller/Login.controller.js
+2
-1
No files found.
app/router/controller/Login.controller.js
View file @
c62914ca
...
@@ -125,13 +125,14 @@ sap.ui.define([
...
@@ -125,13 +125,14 @@ sap.ui.define([
},
},
/**
/**
* 获取token
* 获取token
* 任何一个odata的get请求都可以获取x-csrf-token,供后续后台请求使用
* @param completeCallback
* @param completeCallback
*/
*/
getCsrfToken
(
completeCallback
)
{
getCsrfToken
(
completeCallback
)
{
let
that
=
this
let
that
=
this
jQuery
.
ajax
({
jQuery
.
ajax
({
method
:
"GET"
,
method
:
"GET"
,
url
:
this
.
baseUrl
+
"odata/v4/
orderService/OrderHeader
"
,
url
:
this
.
baseUrl
+
"odata/v4/
exampleService/ExampleView
"
,
headers
:
{
headers
:
{
'x-csrf-token'
:
'fetch'
'x-csrf-token'
:
'fetch'
},
},
...
...
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