123456789101112131415161718192021222324252627282930313233 |
- import { getRichText } from './service';
- Component({
- props: {
- componentData: {}
- },
- data: {
- richText: ''
- },
- async didMount() {
- const {
- componentData
- } = this.props;
- const {
- componentUUID
- } = componentData;
- await this.fetchRichValue(componentUUID);
- },
- methods: {
- async fetchRichValue(uuid) {
- const {
- abRichText
- } = await getRichText({
- componentUuid: uuid
- });
- this.setData({
- richText: abRichText
- });
- }
- }
- });
|