Поправил день, убрал вывод в консоль
Some checks are pending
Gitea Actions / Build and deploy (push) Waiting to run
Some checks are pending
Gitea Actions / Build and deploy (push) Waiting to run
This commit is contained in:
parent
7c0f2897a2
commit
803d7a0af6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue