Fix request to /generate endpoint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user