Skip to content

Commit

Permalink
  fix: trying to fix cors on flow
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Mar 25, 2024
1 parent 104bc7e commit 08b55dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"preview": "vite preview",
"lint:fix": "eslint --fix --ext .js,.vue src"
},
"type": "module",
"dependencies": {
"@vue/compat": "^3.2.47",
"@vuelidate/core": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default {
async initDiagram() {
const flowDiagramUrl = import.meta.env.VITE_FLOW_DIAGRAM_URL;
const script = document.createElement('script');
script.src = `${flowDiagramUrl}/WtFlowDiagram.umd.min.js`;
script.type = 'module';
script.src = `${flowDiagramUrl}/WtFlowDiagram.js`;
script.onload = () => {
const params = {
// if edit, restore diagram
Expand Down Expand Up @@ -82,7 +84,7 @@ export default {
},
},
};
const WtFlowDiagram = window.WtFlowDiagram.default;
const WtFlowDiagram = window.WtFlowDiagram;
this.diagram = new WtFlowDiagram('#flow-diagram', params);
const onSave = async ({
Expand Down

0 comments on commit 08b55dc

Please sign in to comment.