状态检查

This commit is contained in:
Shao Huan Qing
2021-09-12 20:47:41 +08:00
parent 51baa4e3cd
commit f7142a5183

View File

@ -14,7 +14,7 @@
一个 Github Star 一个 Github Star
<OutboundLink/> <OutboundLink/>
</a> </a>
是您对 Kuboard 最大的鼓励 激励 Kuboard 继续前行
</div> </div>
<a href="https://github.com/eip-work/kuboard-press" target="_blank" @click="linkToStar"> <a href="https://github.com/eip-work/kuboard-press" target="_blank" @click="linkToStar">
<div style="border: solid 1px #ddd;"> <div style="border: solid 1px #ddd;">
@ -54,6 +54,10 @@ export default {
}, },
methods: { methods: {
checkDuration() { checkDuration() {
if (localStorage.getItem('stared') === 'true') {
console.log('已经去过 GITHUB')
return
}
let firstAccess = localStorage.getItem('FIRST_ACCESS') let firstAccess = localStorage.getItem('FIRST_ACCESS')
// console.log(new Date(), new Date(firstAccess)) // console.log(new Date(), new Date(firstAccess))
if (!firstAccess) { if (!firstAccess) {