<template>
  <view v-if="pluginContent && pluginContent.html">
    <!-- <view> {{ pluginContent.html }} </view> -->
    <view v-html="pluginContent.html"> </view>
    <!-- <u-parse :html="pluginContent.html" ref="ht-box"></u-parse> -->
  </view>
</template>

<script>
export default {
  name: 'Plugin',
  data() {
    return { pluginContent: null };
  },
  async mounted() {
    await this.getPlugin();
    console.log(this.pluginContent.js);
  },
  methods: {
    async getPlugin() {
      const res = await this.$u.api.getPlugin({
        pluginId: 0,
        styleType: 0,
      });
      this.pluginContent = res;
    },
  },
};
</script>
