Template
feat : guess word
This commit is contained in:
+7
-7
@@ -46,8 +46,8 @@ export const useWordStore = defineStore("word", {
|
||||
method: "PUT",
|
||||
}
|
||||
);
|
||||
word.enabled = true;
|
||||
return data;
|
||||
// word.enabled = true;
|
||||
// return data;
|
||||
},
|
||||
async disableWord(word: WordResponseDTO) {
|
||||
const config = useRuntimeConfig();
|
||||
@@ -58,8 +58,8 @@ export const useWordStore = defineStore("word", {
|
||||
method: "PUT",
|
||||
}
|
||||
);
|
||||
word.enabled = false;
|
||||
return data;
|
||||
// word.enabled = false;
|
||||
// return data;
|
||||
},
|
||||
|
||||
async createWord(value: string) {
|
||||
@@ -72,8 +72,8 @@ export const useWordStore = defineStore("word", {
|
||||
method: "POST",
|
||||
}
|
||||
);
|
||||
this.words[data.id] = data;
|
||||
return data;
|
||||
// this.words[data.id] = data;
|
||||
// return data;
|
||||
},
|
||||
async deleteWord(word: WordResponseDTO) {
|
||||
const config = useRuntimeConfig();
|
||||
@@ -84,7 +84,7 @@ export const useWordStore = defineStore("word", {
|
||||
method: "DELETE",
|
||||
}
|
||||
);
|
||||
delete this.words[word.id];
|
||||
// delete this.words[word.id];
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user