You've already forked AstralRinth
forked from didirus/AstralRinth
Automatic redirection once you create a new version (#137)
This commit is contained in:
@@ -230,16 +230,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await axios({
|
const data = (
|
||||||
url: 'https://api.modrinth.com/api/v1/version',
|
await axios({
|
||||||
method: 'POST',
|
url: 'https://api.modrinth.com/api/v1/version',
|
||||||
data: formData,
|
method: 'POST',
|
||||||
headers: {
|
data: formData,
|
||||||
'Content-Type': 'multipart/form-data',
|
headers: {
|
||||||
Authorization: this.$auth.token,
|
'Content-Type': 'multipart/form-data',
|
||||||
},
|
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