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
488c94d8
Commit
488c94d8
authored
Apr 12, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:屏蔽mac客户端下载
parent
3c7560a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/modules/course-manage/components/LiveCourseOpt.jsx
+9
-5
No files found.
src/modules/course-manage/components/LiveCourseOpt.jsx
View file @
488c94d8
/*
* @Author: 吴文洁
* @Date: 2020-07-14 15:42:24
* @Last Modified by:
吴文洁
* @Last Modified time: 202
0-07-23 14:35:28
* @Last Modified by:
chenshu
* @Last Modified time: 202
1-04-12 14:00:09
* @Description: 大班直播、互动班课的操作区
*/
...
...
@@ -15,7 +15,11 @@ import User from '@/common/js/user'
class
LiveCourseOpt
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
isMac
:
/macintosh|mac os x/i
.
test
(
navigator
.
userAgent
),
}
}
handleCreateLiveCouese
=
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
'/create-live-course?type=add'
,
...
...
@@ -23,12 +27,12 @@ class LiveCourseOpt extends React.Component {
}
// 下载直播客户端
handleDownloadClient
=
()
=>
{
const
isMac
=
/macintosh|mac os x/i
.
test
(
navigator
.
userAgent
)
;
const
{
isMac
}
=
this
.
state
;
// 判断用户系统
let
platform
;
if
(
!
isMac
){
platform
=
1
}
else
{
}
else
{
platform
=
4
}
BaseService
...
...
@@ -49,7 +53,7 @@ class LiveCourseOpt extends React.Component {
{
userRole
!==
"CloudLecturer"
&&
<
Button
type=
"primary"
onClick=
{
this
.
handleCreateLiveCouese
}
>
新建直播课
</
Button
>
}
<
Button
onClick=
{
this
.
handleDownloadClient
}
>
下载直播客户端
</
Button
>
{
!
this
.
state
.
isMac
&&
<
Button
onClick=
{
this
.
handleDownloadClient
}
>
下载直播客户端
</
Button
>
}
</
div
>
</
div
>
)
...
...
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