Skip to content

Commit

Permalink
fixes missing router imports where mixin is used (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzi authored Aug 26, 2024
1 parent a706f53 commit 80cd72b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
import { useAASStore } from '@/store/AASDataStore';
import SubmodelElementHandling from '@/mixins/SubmodelElementHandling';
import SubmodelElementGroup from '../UIComponents/SubmodelElementGroup.vue';
Expand All @@ -55,9 +56,11 @@ export default defineComponent({
setup() {
const aasStore = useAASStore()
const router = useRouter();
return {
aasStore, // AASStore Object
router, // Router Object
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
import { useAASStore } from '@/store/AASDataStore';
import SubmodelElementHandling from '@/mixins/SubmodelElementHandling';
Expand All @@ -82,9 +83,11 @@ export default defineComponent({
setup() {
const aasStore = useAASStore()
const router = useRouter();
return {
aasStore, // AASStore Object
router, // Router Object
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
import { useAASStore } from '@/store/AASDataStore';
import SubmodelElementHandling from '@/mixins/SubmodelElementHandling';
Expand All @@ -55,9 +56,11 @@ export default defineComponent({
setup() {
const aasStore = useAASStore()
const router = useRouter();
return {
aasStore, // AASStore Object
router, // Router Object
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
import mermaid from 'mermaid';
import { useTheme } from 'vuetify';
import { useAASStore } from '@/store/AASDataStore';
Expand All @@ -45,10 +46,12 @@ export default defineComponent({
setup() {
const theme = useTheme()
const aasStore = useAASStore()
const router = useRouter();
return {
theme, // Theme Object
aasStore, // AASStore Object
router, // Router Object
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineComponent } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useRouter } from 'vue-router';
import { v4 as uuidv4 } from 'uuid';
import md5 from 'md5';

Expand Down

0 comments on commit 80cd72b

Please sign in to comment.