Vuepress 搭建带评论功能的静态博客的实现(2)

<template> <div></div> </template> <script> export default { name: 'Valine', mounted: function(){ // require window const Valine = require('valine'); if (typeof window !== 'undefined') { this.window = window window.AV = require('leancloud-storage') } new Valine({ el: '#vcomments' , appId: '',// your appId appKey: '', // your appKey notify:false, verify:false, avatar:'mm', placeholder: 'just go go' }); }, } </script>

使用 Valine

只需要在 markdown 中调用即可

<Valine></Valine>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/882a40dedac369f2d3777d8db9e149f5.html