Commit 1a6ede923d5deae7db3d5fc6f398b97a9d666343
1 parent
a0757763
1.对指令下发取消监控模式的拦截
Showing
1 changed file
with
1 additions
and
0 deletions
src/main/resources/static/real_control_v2/js/utils/dispatch_pattern.js
| @@ -33,6 +33,7 @@ gb_delay_write_log(); | @@ -33,6 +33,7 @@ gb_delay_write_log(); | ||
| 33 | 33 | ||
| 34 | //拦截POST请求 | 34 | //拦截POST请求 |
| 35 | function interceptPOST(e, xhr, t) { | 35 | function interceptPOST(e, xhr, t) { |
| 36 | + if (t.url.indexOf('/directive') == 0) return; | ||
| 36 | if (t && (t.method == 'POST' || t.type == 'POST')) { | 37 | if (t && (t.method == 'POST' || t.type == 'POST')) { |
| 37 | xhr.abort(); | 38 | xhr.abort(); |
| 38 | notify_err('监控模式!'); | 39 | notify_err('监控模式!'); |