diff --git a/src/views/Word.vue b/src/views/Word.vue index 873197f..c9cf7df 100644 --- a/src/views/Word.vue +++ b/src/views/Word.vue @@ -33,11 +33,11 @@

Anglish

- {{ console.log(`Found word: ${foundWord}`) }} +
- {{ console.log(`definitions: ${definitions}`) }} - {{ console.log(`pos: ${pos}`) }} + +

{{ pos }}

    @@ -102,13 +102,6 @@ const route = useRoute(); const store = useAppStore(); const { anglishToEnglishDictionary, foundWord } = storeToRefs(store); -while (!foundWord) { - console.log("te"); - await new Promise(r => setTimeout(r, 2000)); -} - - - // If the dictionary isn't loaded if ("NOT_LOADED" in anglishToEnglishDictionary.value) { const anglishToEnglishPath = process.env.NODE_ENV === 'production' @@ -120,6 +113,7 @@ if ("NOT_LOADED" in anglishToEnglishDictionary.value) { anglishToEnglishDictionary.value = data; console.log("Dictionary loaded only now!"); foundWord.value = anglishToEnglishDictionary.value[route.params.word.toString()]; + // console.log(`foundWord = ${JSON.stringify(foundWord.value)}`); }) }); } else { @@ -129,102 +123,10 @@ if ("NOT_LOADED" in anglishToEnglishDictionary.value) { // console.log(`foundWord = ${foundWord.value}\n${JSON.stringify(foundWord.value)}`); -// This will potentially force an update +// // This will potentially force an update // JSON.stringify(foundWord.value); - -