营销:适配商城装修组件【营销文章】

This commit is contained in:
owen
2023-11-25 15:53:06 +08:00
parent 92e164747a
commit 343b1fd5f6
3 changed files with 17 additions and 7 deletions
@@ -15,7 +15,7 @@
</template>
<script setup>
import { reactive, onMounted } from 'vue';
import sheep from '@/sheep';
import ArticleApi from '@/sheep/api/promotion/article';
const props = defineProps({
data: {
type: Object,
@@ -30,9 +30,7 @@
content: '',
});
onMounted(async () => {
const { error, data } = await sheep.$api.data.richtext(props.data.id);
if (error === 0) {
state.content = data.content;
}
const { data } = await ArticleApi.getArticle(props.data.id);
state.content = data.content;
});
</script>