wordle frontend almost done
Build / Build-image (push) Successful in 1m11s

This commit is contained in:
2026-08-28 00:55:22 +02:00
parent 5d5250287d
commit 836c83b473
4 changed files with 48 additions and 25 deletions
+15
View File
@@ -43,13 +43,28 @@
type: String,
default: 'nagyonhosszezugyselesz'
},
index: {
type: Number,
default: 0,
}
},
mounted() {
if (localStorage.getItem('guesses')) {
try {
this.guesses = JSON.parse(localStorage.getItem('guesses'));
} catch(e) {
localStorage.removeItem('guesses');
}
}
},
methods: {
onsubmit () {
if (this.guess.length == this.correct.length) {
this.guesses.push(this.guess);
this.guess = '';
localStorage.guesses[this.index] = this.guesses;
}
}
},