Commit 1cc00fbf by zhujian

fix

parent d6e770c5
......@@ -30,19 +30,6 @@ 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);
} else {
let platform;
if (!isMac) {
platform = 1
......@@ -58,7 +45,6 @@ class LiveCourseOpt extends React.Component {
a.click();
document.body.removeChild(a);
})
}
}
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment