You've already forked AstralRinth
forked from didirus/AstralRinth
Automatic redirection once you create a new version (#137)
This commit is contained in:
@@ -230,6 +230,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
const data = (
|
||||||
await axios({
|
await axios({
|
||||||
url: 'https://api.modrinth.com/api/v1/version',
|
url: 'https://api.modrinth.com/api/v1/version',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -239,7 +240,8 @@ export default {
|
|||||||
Authorization: this.$auth.token,
|
Authorization: this.$auth.token,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
await this.$router.go(null)
|
).data
|
||||||
|
await this.$router.push(`/mod/${data.mod_id}/version/${data.id}`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
group: 'main',
|
group: 'main',
|
||||||
|
|||||||
Reference in New Issue
Block a user