Automatic redirection once you create a new version (#137)

This commit is contained in:
Redblueflame
2021-03-30 17:43:28 +02:00
committed by GitHub
parent e58963410e
commit 8594ff0c23
+3 -1
View File
@@ -230,6 +230,7 @@ export default {
}
}
try {
const data = (
await axios({
url: 'https://api.modrinth.com/api/v1/version',
method: 'POST',
@@ -239,7 +240,8 @@ export default {
Authorization: this.$auth.token,
},
})
await this.$router.go(null)
).data
await this.$router.push(`/mod/${data.mod_id}/version/${data.id}`)
} catch (err) {
this.$notify({
group: 'main',