Bladeren bron

fix present and security verify

jason.lu 6 jaren geleden
bovenliggende
commit
e903b5be88
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      sourcecode/h5app/vue/src/views/SecurityVerify.vue

+ 3 - 3
sourcecode/h5app/vue/src/views/SecurityVerify.vue

@@ -282,13 +282,13 @@
             }
         },
         created: function () {
-            let userid = localStorage.getItem('frontend-userid');
+            let userId = localStorage.getItem('frontend-userid');
             let that = this;
-            if(userid == null || userid === undefined){
+            if(userId == null || userId === undefined){
                 this.$router.push('login');
                 return;
             }
-            BasicFunction.get_data('smartUsers/list?uid=' + userid, function (res) {
+            BasicFunction.get_data('smartUsers/list?uid=' + userId, function (res) {
                 if (res.ret === '10000') {
                     if(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0){
                         localStorage.removeItem('frontend-userid');