---
title: "常见问题"
image: "https://cwd.js.org/icon.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://cwd.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 常见问题

:::tip[十分抱歉！]
由于开发团队目前只有一个人，在更新功能后文档可能会滞后。如果遇到问题，请先查看文档是否有更新。  
如果文档没有更新或者文档描述与实际有误，请在 GitHub 仓库的 Issues 中及时反馈。  
如果是更改比较重大的功能，我会在 [常见问题](/common-problems) 中更新。
:::

## 1. 为什么设置完 siteId 后，评论区不显示旧的评论数据？

因为设置了 siteId 后，接口会根据 siteId 来查询数据库带有你设置的 siteId 的评论数据。所以如果设置了 siteId，旧数据就有可能不显示，需要手动去 Cloudflare D1 控制台 Query 运行 SQL 语句来更新数据。

- `abc` 你要设置的 siteId
- `example.com` 查找包含指定域名的评论数据

```sql
UPDATE Comment
SET site_id = 'abc'
WHERE post_url LIKE '%example.com%';
```

运行以上 SQL 语句后，评论区就会显示带有 `abc` siteId 的评论数据了。

![](https://github.com/user-attachments/assets/ccfb31c9-8001-4174-b918-d3d8826c6617)

Source: https://cwd.js.org/common-problems/index.mdx
