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
dcf3a167
authored
Oct 15, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'XK_sample20190923' into Development
# Conflicts: # view/14.js
parents
8d8a617c
1fea6a50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
src/views/sample/sample.vue
view/14.js
src/views/sample/sample.vue
View file @
dcf3a167
...
...
@@ -145,12 +145,17 @@ export default {
beforeCreate
()
{
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
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
)
{
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
;
default
:
window
.
location
.
href
=
window
.
location
.
origin
+
"/v3/sample"
;
window
.
location
.
href
=
window
.
location
.
origin
+
(
paramsStr
?(
"/v3/sample?"
+
paramsStr
):(
"/v3/sample"
))
;
break
;
}
}
...
...
view/14.js
View file @
dcf3a167
This diff is collapsed.
Click to expand it.
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