Safetydance is not browser compat
This commit is contained in:
@@ -11,11 +11,13 @@ export default {
|
||||
components: { ConfirmDialog },
|
||||
data() {
|
||||
return {
|
||||
accessToken: localStorage.token || ''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
if (!this.accessToken) window.location.href = '/';
|
||||
if (!localStorage.token) {
|
||||
if (import.meta.env.BASE_URL !== '/') window.location.href = '/';
|
||||
else console.error('Set localStorage.token')
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user