halo
halo copied to clipboard
点击后台 Halo Logo 进入开发者选项过快会导致计数为负的情况。
是什么版本出现了此问题?
1.5.0-alpha.2
使用的什么数据库?
H2
在线站点地址
https://halo.run
发生了什么?

相关日志输出
No response
附加信息
No response
可以将函数做节流处理。
/reopen
在 1.5.4 再次出现该问题。
@ruibaby: Reopened this issue.
In response to this:
/reopen
在 1.5.4 在此出现该问题。
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/priority backlog
/good-first-issue
想请教一下应该怎么复现这个问题啊?
我使用 Selenium 模拟点击界面上的 logo,并没有出现计数为负的情况
# Chrome Version 105.0.5195.102 (Official Build) (64-bit)
# main.py
from selenium import webdriver
import time
from selenium.webdriver.common.by import By
browser = webdriver.Chrome()
try:
browser.get('http://localhost:8090/admin')
username = browser.find_element(By.XPATH, '/html/body/div/div/div[2]/div/form/div[1]/div/div/span/span/input')
password = browser.find_element(By.XPATH, '/html/body/div/div/div[2]/div/form/div[2]/div/div/span/span/input')
username.send_keys("test_username")
password.send_keys("test_password")
browser.find_element(By.TAG_NAME, 'button').click()
time.sleep(1)
for i in range(1, 101):
browser.find_element(By.XPATH, '/html/body/div[1]/section/aside/div/div/img').click()
print("第 " + str(i) + " 次")
time.sleep(0.00001)
time.sleep(5)
# browser.close()
except Exception as e:
print("失败:{}".format(e))
# browser.close()
@cetr 我记得之前是你反馈说 1.5.4 还可以复现,能再尝试一下吗?可以提供一下你的电脑环境和浏览器环境。
@cetr 我记得之前是你反馈说 1.5.4 还可以复现,能再尝试一下吗?可以提供一下你的电脑环境和浏览器环境。
@ruibaby 还是会,直接用demo站试的,我环境是Windows 10,浏览器版本 105.0.5195.54(正式版本) (64 位)
/assign @wzrove
see https://github.com/halo-dev/console/pull/693
/close
@ruibaby: Closing this issue.
In response to this:
see https://github.com/halo-dev/console/pull/693
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.