|
@@ -37,7 +37,8 @@ export default class TopBtnUI extends BaseUI {
|
|
|
let conNode = cc.find('layout/main_classset/con', this.node)
|
|
|
conNode.active = Data.child.isTeacher ? Data.child.socketServerStarted : Data.child.websocketCon
|
|
|
cc.find('layout/main_classset/cut', this.node).active = !conNode.active
|
|
|
- cc.find('layout/main_exit', this.node).active = conNode.active && Mgr.platform.isAndroid()
|
|
|
+ cc.find('layout/main_exit', this.node).active =
|
|
|
+ Data.child.isTeacher && conNode.active && Mgr.platform.isAndroid()
|
|
|
}
|
|
|
@render
|
|
|
initRoleIcon() {
|