#19 profile.address

This commit is contained in:
scammo 2021-08-16 18:40:55 +02:00
parent ac39750cd4
commit 096c317da8
3 changed files with 14473 additions and 15 deletions

14479
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,10 +13,7 @@ const routes = [
template: "<router-view/>",
},
beforeEnter: (to, from, next) => {
console.log('test')
console.log('token', localStorage.getItem('token'))
if(localStorage.getItem('token') !== null){
console.log('next')
next()
}else{
next({path: '/', query: {url: to.fullPath, access: false}})

View File

@ -28,9 +28,11 @@
:values="profile.languages"
type="language"
></profile-list>
<div v-if="profile.address">
<h3>Meine Location:</h3>
{{profile.address.city}} ({{profile.address.postcode}}), {{profile.address.country}}
</div>
</div>
</template>
<script>
import ProfileList from "@/components/ProfileList";