Поправил день, убрал вывод в консоль
Some checks are pending
Gitea Actions / Build and deploy (push) Waiting to run

This commit is contained in:
p.belezov 2024-04-18 13:47:20 +08:00
parent 7c0f2897a2
commit 803d7a0af6

View File

@ -55,13 +55,12 @@ export default {
methods: { methods: {
getCurrentDay(){ getCurrentDay(){
let date = new Date(); let date = new Date();
console.log(date);
return date.getDay(); return date.getDay();
}, },
checkFriday(){ checkFriday(){
this.isFirst = false; this.isFirst = false;
let day = this.getCurrentDay(); let day = this.getCurrentDay();
this.notFriday = day !== 4; this.notFriday = day !== 5;
this.day = this.dayList[day]; this.day = this.dayList[day];
if (this.notFriday){ if (this.notFriday){
let prevPhrase = this.phrase; let prevPhrase = this.phrase;