Skip to content

Commit

Permalink
refactor: remove defineComponent leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
whatsaaaa committed Apr 16, 2021
1 parent 2871ba5 commit 8200f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/plugin/dev/router/views/home.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import { defineComponent, ref } from "vue";
import { ref } from "vue";
export default defineComponent({
export default {
setup() {
let show = ref(true);
Expand All @@ -11,7 +11,7 @@ export default defineComponent({
return { show, hideDeveloperInstructions };
}
});
};
</script>

<template>
Expand Down
5 changes: 2 additions & 3 deletions templates/plugin/src/components/Counter.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script>
import { defineComponent } from "vue";
import { mapState, mapActions } from "vuex";
export default defineComponent({
export default {
name: "Counter",
computed: {
...mapState("counterModule", ["counter"])
Expand All @@ -13,7 +12,7 @@ export default defineComponent({
decrement: "counterModule/decrementCounter"
})
}
});
};
</script>

<template>
Expand Down

0 comments on commit 8200f00

Please sign in to comment.