thainnv-dev: Nhúng

This commit is contained in:
nguyen van thai
2024-06-06 13:29:22 +07:00
parent 0a7774b7f4
commit c217ed82c9
25 changed files with 382 additions and 45 deletions
@@ -0,0 +1,22 @@
<script setup lang="ts">
import { useArticleStore } from '~/stores/articles';
const { currentArticle } = storeToRefs(useArticleStore());
const props = defineProps<{
dataId?: string,
}>()
const store = reactive({
article: useArticleStore()
})
// onBeforeMount(async () => {
// await store.article.getArticleById(Number(props.dataId))
// })
</script>
<template>
12
<!-- {{ currentArticle }} 12 -->
<!-- <a href="#" :style="style" class="!no-underline !px-2">{{ title }} 1</a> -->
</template>