#19 profile.address
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ac39750cd4
commit
096c317da8
14479
package-lock.json
generated
14479
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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}})
|
||||
|
@ -28,8 +28,10 @@
|
||||
:values="profile.languages"
|
||||
type="language"
|
||||
></profile-list>
|
||||
<h3>Meine Location:</h3>
|
||||
{{profile.address.city}} ({{profile.address.postcode}}), {{profile.address.country}}
|
||||
<div v-if="profile.address">
|
||||
<h3>Meine Location:</h3>
|
||||
{{profile.address.city}} ({{profile.address.postcode}}), {{profile.address.country}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user