Replies: 1 comment
-
@lizheming 大佬求教 @lizheming Boss, please give me advice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug | 问题描述
我通过https://waline.js.org/guide/deploy/zeabur.html中所介绍的方法,在zeabur中部署了MongoDB和Docker服务,如下图:
我在客户端设置了
reaction
为true
,它也正常在网页中展示了,当我点击一个表情后,发送了如下请求:按照该请求的响应来看,
reaction2
的点击次数应该是2,但此时网页上只有我刚刚点击的一次。当我刷新页面后,网页中文章反应所有的表情计数都为0了,此时接口获取到的数据也都是0,如图:我在数据库中查看了,MongoDB数据库中的数据没有问题。
reaction2
的点击次数是2,想知道为什么接口获取到的数据会是0呢?Website URL | 问题网站
https://shmily101.github.io/post/20240412-JS%E5%BC%95%E6%93%8E(%E4%B8%80):%E2%80%9C%E8%A7%A3%E9%87%8A%E2%80%9D%E4%B8%8E%E2%80%9C%E7%BC%96%E8%AF%91%E2%80%9D
Where your waline deploy? | 服务部署在哪里?
Zeabur
Where your comment data store? | 数据存储在哪里?
MongoDB
Describe the bug | Problem description
I deployed in zeabur through the method introduced in https://waline.js.org/guide/deploy/zeabur.html MongoDB and Docker services, as shown below:
I set
reaction
totrue
on the client, and it was displayed on the web page normally. When I clicked an emoticon, the following request was sent:According to the response of the request, the number of clicks on
reaction2
should be 2, but at this time there is only one click on the web page that I just clicked. When I refresh the page, all expression counts reflected in the article on the webpage are 0, and the data obtained by the interface are also 0, as shown in the figure:I checked in the database and there is no problem with the data in the MongoDB database. The number of clicks of
reaction2
is 2. I want to know why the data obtained by the interface is 0?Website URL | Problem website
https://shmily101.github.io/post/20240412-JS%E5%BC%95%E6%93%8E(%E4%B8%80):%E2%80%9C%E8%A7%A3%E9 %87%8A%E2%80%9D%E4%B8%8E%E2%80%9C%E7%BC%96%E8%AF%91%E2%80%9D
Where your waline deploy? | Where is the service deployed?
Zeabur
Where your comment data store? | Where is the data stored?
MongoDB
Beta Was this translation helpful? Give feedback.
All reactions