zhuth 7 years ago
parent
commit
1b735270e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/saas-web/app/view/auth/LoginController.js

+ 1 - 1
frontend/saas-web/app/view/auth/LoginController.js

@@ -64,7 +64,7 @@ Ext.define('saas.view.auth.LoginController', {
             .then(function () {
                 view.isMasked() && view.unmask();
                 view.close();
-                view.ownerCt.destroy();
+                view.ownerCt && view.ownerCt.destroy();
             })
             .catch(function (error) {
                 saas.util.BaseUtil.showErrorToast('切换账套失败: ' + error.message);