forked from kompetenzinventar/ki-frontend
#19 profile.address
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,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";
|
||||
|
Loading…
Reference in New Issue
Block a user