This commit is contained in:
caishi 2023-06-06 14:11:16 +08:00
parent 96ed41c24b
commit 9f0b481b43
3 changed files with 7 additions and 5 deletions

View File

@ -72,9 +72,11 @@
window.location.hash = $(this).attr("name");
return false;
});
}
// window.addEventListener("popstate", function(e) {
// console.log("popstate",e);
// history.go(-2);
// }, false);
</script>
</body>

View File

@ -74,7 +74,7 @@ function Index() {
cateList && cateList.length>0?
cateList.map((i,k)=>{
return(
<a className={cateID === i.id ?"active":""} onClick={()=>setCateID(i.id)}><img src={i.logo_url || Icon} alt="" /><span>{i.name}</span></a>
<a key={k} className={cateID === i.id ?"active":""} onClick={()=>setCateID(i.id)}><img src={i.logo_url || Icon} alt="" /><span>{i.name}</span></a>
)
})
:""
@ -103,7 +103,7 @@ function Index() {
{
projectsList.map((i,k)=>{
return(
<li>
<li key={k}>
{
i.platform === "educoder" ?
<a href="javascript:void(0)" style={{cursor:"default"}}>

View File

@ -117,7 +117,7 @@ function SubList() {
{
monthList.map((i,k)=>{
return(
<li>
<li key={k}>
<div className="mInfos">
<span className="num">{k+1}</span>
<Link target="_blank" to={`/${i.owner && i.owner.login}/${i.identifier}`} className="name task-hide">{i.owner && i.owner.name}/{i.name}</Link>