File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/src/js/module/process/component Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 38
38
import { isEmpty , cloneDeep } from ' lodash' ;
39
39
import storage from ' @/js/helper/storage' ;
40
40
import directoryDialog from ' @js/component/directoryDialog/index.vue' ;
41
-
41
+ import { ext } from ' @/js/service/nodeType ' ;
42
42
export default {
43
43
components: {
44
44
directoryDialog,
@@ -82,8 +82,8 @@ export default {
82
82
this .setFileTree ();
83
83
});
84
84
this .filterNode = (node ) => {
85
- const type = this .nodeData .type . slice ( this . nodeData . type . lastIndexOf ( ' . ' ) + 1 , this . nodeData . type . length ) ;
86
- const match = this .supportModes .find ((item ) => item .rule .test (node .label ) && item .flowType === type );
85
+ const model = ext[ this .nodeData .type ] ;
86
+ const match = this .supportModes .find ((item ) => item .rule .test (node .label ) && item .flowType === model );
87
87
return ! node .isLeaf || (node .isLeaf && match);
88
88
};
89
89
},
You can’t perform that action at this time.
0 commit comments