Fix request to /generate endpoint

This commit is contained in:
2025-03-06 23:44:08 -06:00
parent b46ba6fd2c
commit 37a13d2e7b
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ base:
display: Completionist display: Completionist
crystals_ganon: crystals_ganon:
display: Crystals for Ganon display: Crystals for Ganon
default: 7 default: "7"
values: values:
7: 7:
display: 7 display: 7
@@ -70,7 +70,7 @@ base:
display: Random display: Random
crystals_gt: crystals_gt:
display: Crystals for GT display: Crystals for GT
default: 7 default: "7"
values: values:
7: 7:
display: 7 display: 7

View File

@@ -33,7 +33,7 @@ export default defineComponent({
for (const setting of Object.keys(this.$data)) { for (const setting of Object.keys(this.$data)) {
settings[setting] = this.$data[setting]; settings[setting] = this.$data[setting];
} }
await axios.post("/generate", {settings: settings}) await axios.post("/generate", settings)
.then(response => { .then(response => {
const id = response.data; const id = response.data;
this.$router.push(`/seed/${id}`); this.$router.push(`/seed/${id}`);