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
ade9539f
authored
Mar 23, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
互跳地址
parent
ddf275c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
src/views/download/Index.vue
view/20.js
src/views/download/Index.vue
View file @
ade9539f
...
...
@@ -87,6 +87,24 @@
showClass
:
state
=>
state
.
download
.
showClass
})
},
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
=
(
paramsStr
?
(
"http://www.liexin.com/v3/download?"
+
paramsStr
)
:
(
"http://www.liexin.com/v3/download"
));
break
;
default
:
window
.
location
.
href
=
window
.
location
.
origin
+
(
paramsStr
?
(
"/v3/download?"
+
paramsStr
)
:
(
"/v3/download"
));
break
;
}
}
},
created
()
{
this
.
getData
();
},
...
...
view/20.js
View file @
ade9539f
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