Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1ebffdad
authored
Oct 15, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'XK_sample20190923'
# Conflicts: # view/14.js
parents
8d2cdba9
1fea6a50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
src/views/sample/sample.vue
src/views/sample/sample.vue
View file @
1ebffdad
...
@@ -145,12 +145,17 @@ export default {
...
@@ -145,12 +145,17 @@ export default {
beforeCreate
()
{
beforeCreate
()
{
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
let
url
=
""
;
let
url
=
""
;
let
paramsStr
=
''
;
for
(
let
k
in
this
.
$route
.
query
){
paramsStr
+=
k
+
'='
+
this
.
$route
.
query
[
k
]
+
'&'
}
paramsStr
=
paramsStr
.
slice
(
0
,
-
1
);
switch
(
window
.
location
.
hostname
)
{
switch
(
window
.
location
.
hostname
)
{
case
"m.liexin.com"
:
case
"m.liexin.com"
:
window
.
location
.
href
=
"http://www.liexin.com/v3/sample"
;
window
.
location
.
href
=
(
paramsStr
?(
"http://www.liexin.com/v3/sample?"
+
paramsStr
):(
"http://www.liexin.com/v3/sample"
))
;
break
;
break
;
default
:
default
:
window
.
location
.
href
=
window
.
location
.
origin
+
"/v3/sample"
;
window
.
location
.
href
=
window
.
location
.
origin
+
(
paramsStr
?(
"/v3/sample?"
+
paramsStr
):(
"/v3/sample"
))
;
break
;
break
;
}
}
}
}
...
...
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