yuameshi / PhiCommunity-Bak

A community driven project to make a game like phigros.
https://phi.han-han.xyz
GNU Affero General Public License v3.0
180 stars 67 forks source link

[逻辑bug]返回按钮逻辑错误 #27

Closed luckylaiCN closed 2 years ago

luckylaiCN commented 2 years ago

环境

System : Windows 10 Browser : Chrome User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36 Last git commit : c694f0b

重现

结果

期望值

可能出错的地方

/settings/index.js

document.querySelector("#backBtn").addEventListener("click", () => {
            history.length >= 3
                ? history.back() // <- line 15 
                : (location.href = "../chapterSelect/index.html");
        });

#backBtn被点击时,由于history的最后一项是在偏移率设置界面,所以history.back()回到了偏移率设置。

github-actions[bot] commented 2 years ago

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

SakurajimaMai02 commented 2 years ago

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

fuck u

yuameshi commented 2 years ago

已经修复