Skip to content

Commit

Permalink
script setup:ヘルプダイアログをscript setup化 (#1180)
Browse files Browse the repository at this point in the history
* Migrate: ヘルプダイアログをscript setup化

* Delete: 不要な変数を削除
  • Loading branch information
sevenc-nanashi authored Feb 5, 2023
1 parent 668a182 commit 886243a
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 283 deletions.
22 changes: 7 additions & 15 deletions src/components/ContactInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@
</q-page>
</template>

<script lang="ts">
import { defineComponent, onMounted, ref } from "vue";
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { useStore } from "@/store";
import { useMarkdownIt } from "@/plugins/markdownItPlugin";
export default defineComponent({
setup() {
const store = useStore();
const contact = ref("");
const store = useStore();
const contact = ref("");
const md = useMarkdownIt();
const md = useMarkdownIt();
onMounted(async () => {
contact.value = md.render(await store.dispatch("GET_CONTACT_TEXT"));
});
return {
contact,
};
},
onMounted(async () => {
contact.value = md.render(await store.dispatch("GET_CONTACT_TEXT"));
});
</script>

Expand Down
Loading

0 comments on commit 886243a

Please sign in to comment.