Преглед изворни кода

fix present and security verify

jason.lu пре 6 година
родитељ
комит
e903b5be88
1 измењених фајлова са 3 додато и 3 уклоњено
  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');