移除前端配置中的 postSlug 和 avatarPrefix 参数,改为从后端接口获取 重构 CWDComments 核心类,自动推导 postSlug 等参数并异步加载服务端配置 更新文档和示例页面以反映配置变更
9 lines
227 B
HTML
9 lines
227 B
HTML
<script src="./cwd-comments.js"></script>
|
|
<div id="comments"></div>
|
|
<script>
|
|
const comments = new CWDComments({
|
|
el: '#comments',
|
|
apiBaseUrl: 'https://cwd-comments-api.anghunk.workers.dev',
|
|
});
|
|
comments.mount();
|
|
</script> |