📖 code review:店铺装修逻辑

This commit is contained in:
YunaiV
2023-12-19 23:10:50 +08:00
parent f8ea20060f
commit 51c552fb72
30 changed files with 86 additions and 87 deletions
@@ -1,3 +1,4 @@
<!-- 装修营销组件营销文章 -->
<template>
<view
:style="[
@@ -16,6 +17,7 @@
<script setup>
import { reactive, onMounted } from 'vue';
import ArticleApi from '@/sheep/api/promotion/article';
const props = defineProps({
data: {
type: Object,
@@ -26,9 +28,11 @@
default() {},
},
});
const state = reactive({
content: '',
});
onMounted(async () => {
const { data } = await ArticleApi.getArticle(props.data.id);
state.content = data.content;