Prerpare for dashboard token use
This commit is contained in:
@@ -11,11 +11,11 @@ export default {
|
||||
components: { ConfirmDialog },
|
||||
data() {
|
||||
return {
|
||||
accessToken: localStorage.accessToken || ''
|
||||
accessToken: localStorage.token || ''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
if (!this.accessToken) this.$router.push('/login');
|
||||
if (!this.accessToken) window.location.href = '/';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user