halo icon indicating copy to clipboard operation
halo copied to clipboard

点击后台 Halo Logo 进入开发者选项过快会导致计数为负的情况。

Open ruibaby opened this issue 3 years ago • 8 comments

是什么版本出现了此问题?

1.5.0-alpha.2

使用的什么数据库?

H2

在线站点地址

https://halo.run

发生了什么?

image

相关日志输出

No response

附加信息

No response

ruibaby avatar Mar 05 '22 12:03 ruibaby

可以将函数做节流处理。

ruibaby avatar Mar 05 '22 12:03 ruibaby

/reopen

在 1.5.4 再次出现该问题。

ruibaby avatar Jul 13 '22 14:07 ruibaby

@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.

f2c-ci-robot[bot] avatar Jul 13 '22 14:07 f2c-ci-robot[bot]

/priority backlog

JohnNiang avatar Jul 14 '22 04:07 JohnNiang

/good-first-issue

ruibaby avatar Jul 14 '22 14:07 ruibaby

想请教一下应该怎么复现这个问题啊?

我使用 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()

ghost avatar Sep 10 '22 12:09 ghost

@cetr 我记得之前是你反馈说 1.5.4 还可以复现,能再尝试一下吗?可以提供一下你的电脑环境和浏览器环境。

ruibaby avatar Sep 10 '22 13:09 ruibaby

@cetr 我记得之前是你反馈说 1.5.4 还可以复现,能再尝试一下吗?可以提供一下你的电脑环境和浏览器环境。

@ruibaby 还是会,直接用demo站试的,我环境是Windows 10,浏览器版本 105.0.5195.54(正式版本) (64 位)

cetr avatar Sep 11 '22 10:09 cetr

/assign @wzrove

wzrove avatar Nov 14 '22 12:11 wzrove

see https://github.com/halo-dev/console/pull/693

/close

ruibaby avatar Nov 30 '22 07:11 ruibaby

@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.

f2c-ci-robot[bot] avatar Nov 30 '22 07:11 f2c-ci-robot[bot]