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 3838import { isEmpty , cloneDeep } from ' lodash' ;
3939import storage from ' @/js/helper/storage' ;
4040import directoryDialog from ' @js/component/directoryDialog/index.vue' ;
41-
41+ import { ext } from ' @/js/service/nodeType ' ;
4242export default {
4343 components: {
4444 directoryDialog,
@@ -82,8 +82,8 @@ export default {
8282 this .setFileTree ();
8383 });
8484 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 );
8787 return ! node .isLeaf || (node .isLeaf && match);
8888 };
8989 },
You can’t perform that action at this time.
0 commit comments