We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<template> <div class="articleWap"> <wxparser :rich-text="articleData" /> </div> </template> <script> import { getRequest } from '@/utils/wxRequest.js' var Api = require('@/utils/api.js') export default { data () { return { articleId: '', articleData: {} } }, mounted () { this.$nextTick(() => { this.articleId = this.$root.$mp.query.id this.getDetailData() }) }, methods: { getDetailData () { var getPostDetailRequest = getRequest(Api.getPostByID(this.articleId)) getPostDetailRequest.then(({ data, statusCode }) => { if (statusCode === 200) { this.articleData = data.content.rendered console.log(this.articleData) } }) } } } </script>
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
数量不大,可以用mpvue wxparse 基于mpvue的 就是数据量大会卡顿
"version": "0.2.1
No branches or pull requests
The text was updated successfully, but these errors were encountered: