forked from kompetenzinventar/ki-frontend
env variables usage, more form elements
This commit is contained in:
@ -36,14 +36,14 @@ export default {
|
||||
this.showErrorMessage = false
|
||||
try{
|
||||
const loginResult = await axios.post(
|
||||
`${this.apiUrl}/search`,
|
||||
`${process.env.VUE_APP_API_URL}/search`,
|
||||
// Beispiel Hafte Daten
|
||||
{
|
||||
searchText: this.searchText,
|
||||
})
|
||||
if(loginResult.status === 200){
|
||||
//success login
|
||||
router.push({path: 's/search'})
|
||||
this.router.push({path: 's/search'})
|
||||
}
|
||||
else{
|
||||
this.showErrorMessage = true
|
||||
|
Reference in New Issue
Block a user