@@ -84,7 +84,7 @@
},
created: function () {
// return get_present_data()
- if (!localStorage.getItem('frontend-userid')) {
+ if (localStorage.getItem('frontend-userid') === undefined) {
this.$router.push('login');
return;
}
@@ -21,7 +21,7 @@
console.log('otp: ');
console.log(otp);
let userid = '';
- if (localStorage.getItem('frontend-userid')) {
+ if (localStorage.getItem('frontend-userid') !== undefined) {
userid = localStorage.getItem('frontend-userid');
this.$router.push('index');