'use strict'; const { Component, Fragment } = require('inferno'); const { cacheComponent } = require('../util/cache'); class ChangeYan extends Component { render() { const { appId, conf, path } = this.props; if (!appId || !conf) { return
You forgot to set the appid or conf for Changyan. Please set it in _config.yml.
; } const js = `window.changyan.api.config({appid: '${appId}',conf: '${conf}'});`; return
; } } module.exports = cacheComponent(ChangeYan, 'comment.changyan', props => { return { appId: props.appid, conf: props.conf, path: props.page.path }; });