Browse Source

加载方式修改

hy 6 năm trước cách đây
mục cha
commit
49e7fa8f48
2 tập tin đã thay đổi với 4 bổ sung8 xóa
  1. 4 7
      app/controller/Global.js
  2. 0 1
      resources/json/navigation.json

+ 4 - 7
app/controller/Global.js

@@ -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(){ 

+ 0 - 1
resources/json/navigation.json

@@ -19,7 +19,6 @@
             {
                 "text": "筛选头",
                 "target": "dataListPanel",
-                "path": "uas.view.grid.dataList.DataListPanel",
                 "leaf": true,
                 "iconCls": "x-fa fa-smile-o"
             },