Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120835149
App.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
821 B
Referenced Files
None
Subscribers
None
App.vue
View Options
<template>
<router-view></router-view>
</template>
<script>
import store from '../js/store'
export default {
created() {
if (localStorage.token) {
axios.get('/api/auth/info', {
headers: {
Authorization: 'Bearer ' + localStorage.getItem('token')
}
}).then(response => {
store.commit('loginUser')
}).catch(error => {
if (error.response.status === 401 || error.response.status === 403) {
store.commit('logoutUser')
localStorage.setItem('token', '')
this.$router.push({name: 'login'})
}
});
}
}
}
</script>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Apr 24, 1:14 PM (5 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18771264
Default Alt Text
App.vue (821 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline