zhuth 7 лет назад
Родитель
Сommit
3e0f512a53

+ 8 - 2
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -48,8 +48,14 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                     },
                     listeners: {
                         exception: function(proxy, response, operation, eOpts) {
-                            console.error('exception: ', response.responseJson.message);
-                            showToast('exception:' + response.responseJson.message);
+                            if(operation.success) {
+                                if(response.timedout) {
+                                    showToast('请求超时');
+                                }
+                            }else {
+                                console.error('exception: ', response.responseJson);
+                                showToast('exception:' + response.responseJson);
+                            }
                         }
                     }
                 },

+ 1 - 1
frontend/saas-web/app/view/main/Navigation.js

@@ -197,7 +197,7 @@ Ext.define('saas.view.main.Navigation', {
             menuId = 'navMenu-' + id,
             menu = Ext.getCmp(menuId);
 
-        if (cx <= itemBox.left || cy <= itemBox.top || cy >= (itemBox.top + itemBox.height)) {
+        if (cx <= itemBox.left || cy <= itemBox.top || (cy >= (itemBox.top + itemBox.height) && cx <= (itemBox.left + itemBox.width - 10))) {
             if (menu) {
                 menu.hide();
             }