env variables usage, more form elements

This commit is contained in:
scammo
2021-06-14 15:02:53 +02:00
parent 7a616b5083
commit 897f0390ec
4 changed files with 81 additions and 19 deletions

View File

@ -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