Commit 27b922b884a5d2261ff03cd262fa4c30036fac68
1 parent
b6be95d9
fix play bug
Showing
1 changed file
with
5 additions
and
3 deletions
src/gxb-ide/CodingEditer.js
| 1 | 1 | ;(function(window){ |
| 2 | - | |
| 2 | + var _role = getQuery('role'); | |
| 3 | 3 | var CodingEditer = { |
| 4 | 4 | records: [], // 存储录入的操作 |
| 5 | 5 | recording_status: false, // 当前是否在录制 true: 正在录制,false: 没有录制 |
| ... | ... | @@ -465,8 +465,10 @@ |
| 465 | 465 | |
| 466 | 466 | CodingEditer.triggertotal = 0; |
| 467 | 467 | |
| 468 | - $('.play-code').show(); | |
| 469 | - $('.pause-play-code').hide(); | |
| 468 | + if (_role == 1) { | |
| 469 | + $('.play-code').show(); | |
| 470 | + $('.pause-play-code').hide(); | |
| 471 | + } | |
| 470 | 472 | } |
| 471 | 473 | |
| 472 | 474 | } | ... | ... |