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
04738305
authored
Oct 15, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
0d2c973f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
src/views/sample/sample.vue
view/14.js
src/views/sample/sample.vue
View file @
04738305
...
@@ -142,31 +142,20 @@ export default {
...
@@ -142,31 +142,20 @@ export default {
}
}
}
}
},
},
created
()
{
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
=
""
;
switch
(
window
.
location
.
hostname
)
{
switch
(
window
.
location
.
hostname
)
{
case
"m.ichunt.com"
:
url
=
"https://www.ichunt.com"
;
break
;
case
"szm.ichunt.com"
:
url
=
"https://sz.ichunt.com"
;
break
;
case
"tm.ichunt.com"
:
url
=
"https://t.ichunt.com"
;
break
;
case
"m.liexin.com"
:
case
"m.liexin.com"
:
url
=
"http://www.liexin.com
"
;
window
.
location
.
href
=
"http://www.liexin.com/v3/sample
"
;
break
;
break
;
default
:
default
:
url
=
"https://www.ichunt.com
"
;
window
.
location
.
href
=
window
.
location
.
origin
+
"/v3/sample
"
;
break
;
break
;
}
}
console
.
log
(
url
)
console
.
log
(
url
+
'/v3/sample'
)
// window.location.href = url+'/v3/sample'
}
}
},
created
()
{
this
.
$store
.
dispatch
({
this
.
$store
.
dispatch
({
type
:
"getClasslist"
type
:
"getClasslist"
});
});
...
...
view/14.js
View file @
04738305
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