Przeglądaj źródła

fix present and security verify

jason.lu 6 lat temu
rodzic
commit
e903b5be88

+ 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');