[Fix & Update] Fix ts warning and navbar activity

update link in cfp root page
This commit is contained in:
mysper 2021-03-03 16:55:52 +08:00
parent d630fe7b4c
commit 77f45bd6cb
5 changed files with 9 additions and 8 deletions

View File

@ -55,7 +55,7 @@
</div> </div>
</div> </div>
<div class="cfp-news"> <div class="cfp-news">
<a href="/2021/cfp/news" rel="noopener"> <a href="/2021/cfp/ocfp-news" rel="noopener">
<div class="btn-news-wrapper"> <div class="btn-news-wrapper">
<img src="~@/assets/images/burnfont/btn-news.svg" id="svg-news" /> <img src="~@/assets/images/burnfont/btn-news.svg" id="svg-news" />
</div> </div>

View File

@ -98,7 +98,9 @@ export default class CfpHeader extends Vue {
} }
private async onTick (t: number) { private async onTick (t: number) {
if (t<0) this.cfp = false; if (t < 0) {
this.cfp = false;
}
this.countdown.s = t % 60; this.countdown.s = t % 60;
t = Math.floor(t / 60); t = Math.floor(t / 60);
this.countdown.m = t % 60; this.countdown.m = t % 60;

View File

@ -78,7 +78,7 @@ export default class Navbar extends Vue {
this.isNavbarReturning = true; this.isNavbarReturning = true;
} }
this.isNavbarAnimating = true; this.isNavbarAnimating = true;
} }
} }
}); });

View File

@ -98,7 +98,9 @@ export default class CfpHeader extends Vue {
} }
private async onTick (t: number) { private async onTick (t: number) {
if (t<0) this.cfp = false; if (t < 0) {
this.cfp = false;
}
this.countdown.s = t % 60; this.countdown.s = t % 60;
t = Math.floor(t / 60); t = Math.floor(t / 60);
this.countdown.m = t % 60; this.countdown.m = t % 60;

View File

@ -43,8 +43,6 @@ export default class Navbar extends Vue {
'#schedule', '#schedule',
'#example', '#example',
'#code-of-conduct', '#code-of-conduct',
'#info-section',
'#process',
'#methods', '#methods',
'#review', '#review',
'#precautions', '#precautions',
@ -79,8 +77,7 @@ export default class Navbar extends Vue {
this.isNavbarFixed = false; this.isNavbarFixed = false;
this.isNavbarReturning = true; this.isNavbarReturning = true;
} }
this.isNavbarAnimating = true;
this.isNavbarAnimating = true;
} }
} }
}); });