provide config.js
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2021-07-28 21:52:12 +02:00
parent e7730020ef
commit 6bd794ad6b
12 changed files with 40 additions and 26 deletions

View File

@ -80,7 +80,7 @@ export default {
async submitSearch() {
this.showErrorMessage = false;
try {
let url = `${process.env.VUE_APP_API_URL}/users/profiles`;
let url = `${this.apiUrl}/users/profiles`;
if (this.searchText != "") {
url += `?nickname=${this.searchText}`;
}
@ -98,4 +98,4 @@ export default {
},
},
};
</script>
</script>

View File

@ -127,7 +127,7 @@
v-model="profile.address.country"
/>
</div>
</div>
</div>
<button type="submit" class="btn btn-outline-success mb-4 mt-4 col-12">Speichern</button>
<div
@ -182,7 +182,7 @@ export default {
async created() {
try {
const userProfile = await axios.get(
`${process.env.VUE_APP_API_URL}/users/${localStorage.getItem(
`${this.apiUrl}/users/${localStorage.getItem(
"user_id"
)}/profile`,
{
@ -198,7 +198,7 @@ export default {
async submitForm() {
try {
const formSubmitResult = await axios.post(
`${process.env.VUE_APP_API_URL}/users/${localStorage.getItem(
`${this.apiUrl}/users/${localStorage.getItem(
"user_id"
)}/profile`,
this.profile,
@ -222,4 +222,4 @@ export default {
}
},
};
</script>
</script>

View File

@ -44,7 +44,7 @@ export default {
async created() {
try {
const userProfile = await this.axios.get(
`${process.env.VUE_APP_API_URL}/users/${this.$route.params.memberId}/profile`,
`${this.apiUrl}/users/${this.$route.params.memberId}/profile`,
{
headers: { Authorization: `Bearer ${localStorage.getItem("token")}` },
}
@ -55,4 +55,4 @@ export default {
}
},
};
</script>
</script>