Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
1cc00fbf
Commit
1cc00fbf
authored
Aug 10, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d6e770c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
27 deletions
+13
-27
src/modules/course-manage/components/LiveCourseOpt.jsx
+13
-27
No files found.
src/modules/course-manage/components/LiveCourseOpt.jsx
View file @
1cc00fbf
...
...
@@ -30,35 +30,21 @@ class LiveCourseOpt extends React.Component {
const
{
isMac
}
=
this
.
state
;
const
BRAND
=
process
.
env
.
BRAND
;
// 判断学员系统
if
(
BRAND
==
'syoo'
)
{
var
url
;
if
(
!
isMac
)
{
url
=
'https://cdn.xiaomai5.com/ykt-win.exe'
}
else
{
url
=
'https://cdn.xiaomai5.com/ykt-mac.dmg'
}
const
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
url
;
a
.
click
();
document
.
body
.
removeChild
(
a
);
let
platform
;
if
(
!
isMac
)
{
platform
=
1
}
else
{
let
platform
;
if
(
!
isMac
)
{
platform
=
1
}
else
{
platform
=
4
}
BaseService
.
getLastedVersion
({
model
:
5
,
platform
})
.
then
((
res
)
=>
{
const
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
res
.
result
.
releaseUrl
;
a
.
click
();
document
.
body
.
removeChild
(
a
);
})
platform
=
4
}
BaseService
.
getLastedVersion
({
model
:
5
,
platform
})
.
then
((
res
)
=>
{
const
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
res
.
result
.
releaseUrl
;
a
.
click
();
document
.
body
.
removeChild
(
a
);
})
}
render
()
{
...
...
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