Skip to content

Commit

Permalink
Merge pull request #2 from WeBankFinTech/dev-0.9.0
Browse files Browse the repository at this point in the history
Dev 0.9.0
  • Loading branch information
det101 authored Jun 19, 2020
2 parents d79d0d8 + 4073f00 commit 9741ef3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/js/module/process/component/associateScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import { isEmpty, cloneDeep } from 'lodash';
import storage from '@/js/helper/storage';
import directoryDialog from '@js/component/directoryDialog/index.vue';

import { ext } from '@/js/service/nodeType';
export default {
components: {
directoryDialog,
Expand Down Expand Up @@ -82,8 +82,8 @@ export default {
this.setFileTree();
});
this.filterNode = (node) => {
const type = this.nodeData.type.slice(this.nodeData.type.lastIndexOf('.') + 1, this.nodeData.type.length);
const match = this.supportModes.find((item) => item.rule.test(node.label) && item.flowType === type);
const model = ext[this.nodeData.type];
const match = this.supportModes.find((item) => item.rule.test(node.label) && item.flowType === model);
return !node.isLeaf || (node.isLeaf && match);
};
},
Expand Down

0 comments on commit 9741ef3

Please sign in to comment.