Prerpare for dashboard token use

This commit is contained in:
Johannes Zellner
2023-04-16 18:13:22 +02:00
parent e4e96a6a2f
commit a0ef00788a
4 changed files with 6 additions and 104 deletions
+2 -2
View File
@@ -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 = '/';
}
};