tokens
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user