|
|
@@ -2,7 +2,7 @@
|
|
|
* @Description:
|
|
|
* @Author: hy
|
|
|
* @Date: 2019-08-12 17:59:33
|
|
|
- * @LastEditTime: 2019-08-15 09:24:55
|
|
|
+ * @LastEditTime: 2019-08-15 09:30:58
|
|
|
*/
|
|
|
Ext.define('uas.controller.Global', {
|
|
|
extend: 'Ext.app.Controller',
|
|
|
@@ -33,18 +33,15 @@ Ext.define('uas.controller.Global', {
|
|
|
|
|
|
beforeHandleRoute: function(target, action) {
|
|
|
let me = this,
|
|
|
- store = Ext.StoreMgr.get('Navigation'),
|
|
|
- node = store.findNode('target', target),
|
|
|
- path = node.get('path');
|
|
|
- className = Ext.ClassManager.getNameByAlias('widget.' + target),
|
|
|
- ViewClass = Ext.ClassManager.get(className);
|
|
|
+ className = Ext.ClassManager.getNameByAlias('widget.' + target),
|
|
|
+ ViewClass = Ext.ClassManager.get(className);
|
|
|
|
|
|
if(!!ViewClass) {
|
|
|
//resume action
|
|
|
action.resume();
|
|
|
}else {
|
|
|
new Ext.Promise(function (resolve, reject) {
|
|
|
- Ext.require(path,function(){
|
|
|
+ Ext.require(className,function(){
|
|
|
resolve();
|
|
|
});
|
|
|
}).then(function(){
|