Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
songxia-wxherr
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
songxia-wxherr
Commits
1d75b284
Commit
1d75b284
authored
Jun 15, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loginUrl fixed
parent
ccc1decd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
common.js
src/utils/common.js
+8
-2
No files found.
src/utils/common.js
View file @
1d75b284
...
@@ -40,8 +40,14 @@ module.exports = {
...
@@ -40,8 +40,14 @@ module.exports = {
});
});
},
},
requestLogin
:
function
(
returnUrl
)
{
requestLogin
:
function
(
returnUrl
)
{
returnUrl
=
returnUrl
||
location
.
href
;
returnUrl
=
returnUrl
||
location
.
href
;
location
.
href
=
this
.
getServerUrl
(
"login/auth"
)
+
"?returnUrl="
+
encodeURIComponent
(
returnUrl
)
+
"&client="
+
encodeURIComponent
(
location
.
origin
);
var
url
=
this
.
getServerUrl
(
"login/auth"
)
+
"?returnUrl="
+
encodeURIComponent
(
returnUrl
);
if
(
this
.
getUrl
(
''
)
!=
this
.
getServerUrl
(
''
))
{
url
+=
"&client="
+
encodeURIComponent
(
this
.
getUrl
(
''
))
}
location
.
href
=
url
;
},
},
isBanshou
:
function
()
{
isBanshou
:
function
()
{
return
!!
navigator
.
userAgent
.
match
(
/BanShou/
);
return
!!
navigator
.
userAgent
.
match
(
/BanShou/
);
...
...
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