Д
Size: a a a
Д
VA
Д
S🛸
S🛸
IN
IN
A
IZ
axios.get('/rest/api/init/services/')
.then(response => {
this.sourceData = response.data.results;
this.searchingNow = true;
})
.catch(error => {
console.error(error);
})
АБ
axios.get('/rest/api/init/services/')
.then(response => {
this.sourceData = response.data.results;
this.searchingNow = true;
})
.catch(error => {
console.error(error);
})
IZ
getWorktypes: function () {
axios.get('/rest/services')
.then(response => {
if (response.status === '200') {
this.sourceData = response.data.results;
this.searchingNow = true;
} else axios.get('/rest/api/init/services/')
.then(response => {
if (response.status === '200') {
this.sourceData = response.data.results;
this.searchingNow = true;
}
})
})
.catch(error => {
console.error(error)
})
}
}
});
Так
или не совсем?W
getWorktypes: function () {
axios.get('/rest/services')
.then(response => {
if (response.status === '200') {
this.sourceData = response.data.results;
this.searchingNow = true;
} else axios.get('/rest/api/init/services/')
.then(response => {
if (response.status === '200') {
this.sourceData = response.data.results;
this.searchingNow = true;
}
})
})
.catch(error => {
console.error(error)
})
}
}
});
Так
или не совсем?IZ
IZ
W
М
М
М
A