#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/>",
|
template: "<router-view/>",
|
||||||
},
|
},
|
||||||
beforeEnter: (to, from, next) => {
|
beforeEnter: (to, from, next) => {
|
||||||
console.log('test')
|
|
||||||
console.log('token', localStorage.getItem('token'))
|
|
||||||
if(localStorage.getItem('token') !== null){
|
if(localStorage.getItem('token') !== null){
|
||||||
console.log('next')
|
|
||||||
next()
|
next()
|
||||||
}else{
|
}else{
|
||||||
next({path: '/', query: {url: to.fullPath, access: false}})
|
next({path: '/', query: {url: to.fullPath, access: false}})
|
||||||
|
@ -28,9 +28,11 @@
|
|||||||
:values="profile.languages"
|
:values="profile.languages"
|
||||||
type="language"
|
type="language"
|
||||||
></profile-list>
|
></profile-list>
|
||||||
|
<div v-if="profile.address">
|
||||||
<h3>Meine Location:</h3>
|
<h3>Meine Location:</h3>
|
||||||
{{profile.address.city}} ({{profile.address.postcode}}), {{profile.address.country}}
|
{{profile.address.city}} ({{profile.address.postcode}}), {{profile.address.country}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import ProfileList from "@/components/ProfileList";
|
import ProfileList from "@/components/ProfileList";
|
||||||
|
Loading…
Reference in New Issue
Block a user