Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
39615e29
authored
Feb 06, 2020
by
hanjixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加认证文件
parent
bda6380a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
auth.html
+39
-0
templateMore.html
+0
-0
No files found.
auth.html
0 → 100644
View file @
39615e29
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title></title>
</head>
<body>
</body>
<script>
function
getQuery
(
key
)
{
var
url
=
location
.
search
;
//获取url中"?"符后的字串
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
'?'
)
!=
-
1
)
{
var
str
=
url
.
substr
(
1
);
var
strs
=
str
.
split
(
'&'
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
'='
)[
0
]]
=
decodeURI
(
strs
[
i
].
split
(
'='
)[
1
]);
}
}
if
(
key
)
{
return
(
theRequest
[
key
]
===
"undefined"
||
theRequest
[
key
]
==
'0'
)
?
''
:
theRequest
[
key
];
}
else
{
return
theRequest
;
}
}
var
query
=
getQuery
();
var
token
=
query
.
token
var
url
=
query
.
url
var
applicationId
=
query
.
aid
window
.
localStorage
.
setItem
(
'bdideal_personalToken'
,
token
)
window
.
localStorage
.
setItem
(
'bdideal_applicationId'
,
applicationId
)
window
.
localStorage
.
setItem
(
'bdideal_saveTime'
,
Date
.
now
())
location
.
replace
(
url
)
</script>
</html>
\ No newline at end of file
public/
templateMore.html
→
templateMore.html
View file @
39615e29
File moved
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