This commit is contained in:
2022-05-29 23:17:52 -05:00
parent e50e7ef6e6
commit 142be715d6
8 changed files with 96 additions and 40 deletions
+21 -8
View File
@@ -124,12 +124,16 @@ export default {
formData.append('file', this.csv)
axios
.post(`${process.env.api}/profesor/cargarDatos?idPremiacion=${this.idPremiacionCSV}`, formData, {
headers: {
'Content-Type': 'multipart/form-data',
// token: localStorage.getItem('token'),
},
})
.post(
`${process.env.api}/profesor/cargarDatos?idPremiacion=${this.idPremiacionCSV}`,
formData,
{
headers: {
'Content-Type': 'multipart/form-data',
token: localStorage.getItem('token'),
},
}
)
.then((res) => {
this.isLoading = false
this.csv = {}
@@ -199,7 +203,12 @@ export default {
this.isLoading = true
axios
.get(
`${process.env.api}/invitado/get?idPremiacion=${this.idPremiacion}`
`${process.env.api}/invitado/get?idPremiacion=${this.idPremiacion}`,
{
headers: {
token: localStorage.getItem('token'),
},
}
)
.then((res) => {
this.isLoading = false
@@ -223,7 +232,11 @@ export default {
async created() {
this.isLoading = true
await axios
.get(`${process.env.api}/premiacion/get`)
.get(`${process.env.api}/premiacion/get`, {
headers: {
token: localStorage.getItem('token'),
},
})
.then((res) => {
this.isLoading = false
if (res) {