forked from ccsens_fe/tall-mui-3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
643 B
30 lines
643 B
4 years ago
|
<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>
|