Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
桩
桩基检测
Project
Project
Details
Activity
Releases
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
张牧越
桩基检测
Commits
ff71e8ed
Commit
ff71e8ed
authored
Jun 16, 2023
by
陈珊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getCookie
parent
7bf14c0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
gczljc.js
static/js/gczljc.js
+1
-1
util.js
static/js/util.js
+14
-0
No files found.
static/js/gczljc.js
View file @
ff71e8ed
...
@@ -132,7 +132,7 @@ new Vue({
...
@@ -132,7 +132,7 @@ new Vue({
GetSessionInfo
(){
GetSessionInfo
(){
let
_this
=
this
;
let
_this
=
this
;
let
data
=
{
let
data
=
{
token
:
sessionStorage
.
getItem
(
"op_code"
)
token
:
getCookie
(
"op_code"
)
// token: "ADA90463-7ABE-4564-83A6-B6BB278975D0"
// token: "ADA90463-7ABE-4564-83A6-B6BB278975D0"
}
}
$
.
ajax
({
$
.
ajax
({
...
...
static/js/util.js
View file @
ff71e8ed
...
@@ -54,3 +54,17 @@ function sort(obj) {
...
@@ -54,3 +54,17 @@ function sort(obj) {
}
}
return
str
;
return
str
;
}
}
function
getCookie
(
cookieName
)
{
const
strCookie
=
document
.
cookie
const
cookieList
=
strCookie
.
split
(
';'
)
for
(
let
i
=
0
;
i
<
cookieList
.
length
;
i
++
)
{
const
arr
=
cookieList
[
i
].
split
(
'='
)
if
(
cookieName
===
arr
[
0
].
trim
())
{
return
arr
[
1
]
}
}
return
''
}
\ No newline at end of file
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